-
Notifications
You must be signed in to change notification settings - Fork 0
tech(#1): implementing a dockerfile that builds the package #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # Git files | ||
| .git | ||
| .gitignore | ||
| .gitattributes | ||
|
|
||
| # Build artifacts | ||
| *.deb | ||
| .theos/obj | ||
| .theos/_/ | ||
| *.o | ||
| *.dylib | ||
| *.a | ||
|
|
||
| # Xcode | ||
| *.xcodeproj/xcuserdata | ||
| *.xcodeproj/project.xcworkspace/xcuserdata | ||
| *.xcworkspace/xcuserdata | ||
| *.xcodeproj/project.xcworkspace/*.xcuserstate | ||
| *.xcuserstate | ||
| DerivedData/ | ||
|
|
||
| # IDE | ||
| .vscode/ | ||
| .idea/ | ||
|
|
||
| # macOS | ||
| .DS_Store | ||
| ._* | ||
|
|
||
| # Logs | ||
| *.log | ||
|
|
||
| # Temporary files | ||
| *.tmp | ||
| *.swp | ||
| *~ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| name: Build WebMessage .deb | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ main, develop ] | ||
| tags: | ||
| - 'v*' | ||
| pull_request: | ||
| branches: [ main ] | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v2 | ||
|
|
||
| - name: Build Docker image | ||
| run: | | ||
| docker build -t webmessage-builder:latest . | ||
|
|
||
| - name: Build .deb package | ||
| run: | | ||
| docker run --name webmessage-build webmessage-builder:latest | ||
| mkdir -p output | ||
| docker cp webmessage-build:/build/WebMessage.deb ./output/ | ||
| docker rm webmessage-build | ||
|
|
||
| - name: Get package info | ||
| run: | | ||
| echo "## Package Information" >> $GITHUB_STEP_SUMMARY | ||
| echo '```' >> $GITHUB_STEP_SUMMARY | ||
| dpkg-deb --info output/WebMessage.deb >> $GITHUB_STEP_SUMMARY | ||
| echo '```' >> $GITHUB_STEP_SUMMARY | ||
| echo "" >> $GITHUB_STEP_SUMMARY | ||
| echo "## Package Size" >> $GITHUB_STEP_SUMMARY | ||
| echo '```' >> $GITHUB_STEP_SUMMARY | ||
| ls -lh output/WebMessage.deb >> $GITHUB_STEP_SUMMARY | ||
| echo '```' >> $GITHUB_STEP_SUMMARY | ||
|
|
||
| - name: Upload .deb artifact | ||
| uses: actions/upload-artifact@v3 | ||
| with: | ||
| name: WebMessage-deb | ||
| path: output/WebMessage.deb | ||
| retention-days: 30 | ||
|
|
||
| - name: Create Release (on tag) | ||
| if: startsWith(github.ref, 'refs/tags/v') | ||
| uses: softprops/action-gh-release@v1 | ||
|
Comment on lines
+47
to
+55
|
||
| with: | ||
| files: output/WebMessage.deb | ||
| draft: false | ||
| prerelease: false | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,8 @@ | ||
| LatestBuild | ||
| Packages | ||
|
|
||
| output/WebMessage.deb | ||
|
|
||
| # OS generated files # | ||
| ###################### | ||
| .DS_Store | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,167 @@ | ||||||||||||||||||||||||||||||||||||||||||||
| # Dockerfile for building WebMessage Sileo jailbreak tweak | ||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
| # Dockerfile for building WebMessage Sileo jailbreak tweak | |
| # Dockerfile for building WebMessage iOS jailbreak tweak |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment mentions removing SDKs with "incompatible TBD format" but the wildcard pattern will also remove any future patch versions (e.g., iPhoneOS14.8.sdk). Consider being more specific about which SDK versions are compatible with clang 10, or dynamically keep only iOS 13.x SDKs to make the intention clearer and more maintainable.
| # Remove iOS 14+ SDKs that have incompatible TBD format | |
| rm -rf iPhoneOS14.*.sdk iPhoneOS15.*.sdk iPhoneOS16.*.sdk iPhoneOS17.*.sdk | |
| # Keep only iOS 13.x SDKs (compatible with clang 10); remove all others | |
| find . -maxdepth 1 -type d -name 'iPhoneOS*.sdk' ! -name 'iPhoneOS13.*.sdk' -exec rm -rf {} + |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment "Copy the project's libmryipc library to theos" followed by "This will be done after COPY . ." is misleading since the actual copying happens at line 85-87, not immediately after. Consider removing this orphaned comment or moving it closer to the actual copy operation to avoid confusion.
| # Copy the project's libmryipc library to theos | |
| # This will be done after COPY . . to use the project's version | |
| # Set working directory | |
| WORKDIR /build | |
| # Copy project files | |
| COPY . . | |
| # Copy the libmryipc library from the project to theos lib directory | |
| # Set working directory | |
| WORKDIR /build | |
| # Copy project files | |
| COPY . . | |
| # Copy the project's libmryipc library to theos | |
| # This will be done after COPY . . to use the project's version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The workflow uses actions/checkout@v3 and docker/setup-buildx-action@v2 which are outdated. GitHub Actions v4 versions are now available and recommended for better performance and security. Consider updating to actions/checkout@v4 and docker/setup-buildx-action@v3.