gui_main.py: Clean chunk check #854
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI - Build wxPython | |
on: | |
push: | |
workflow_dispatch: | |
release: | |
types: [published] | |
jobs: | |
build: | |
name: Build wxPython | |
runs-on: x86_64_mojave | |
if: github.repository_owner == 'dortania' | |
env: | |
branch: ${{ github.ref }} | |
commiturl: ${{ github.event.head_commit.url }}${{ github.event.release.html_url }} | |
commitdate: ${{ github.event.head_commit.timestamp }}${{ github.event.release.published_at }} | |
MAC_NOTARIZATION_USERNAME: ${{ secrets.MAC_NOTARIZATION_USERNAME }} | |
MAC_NOTARIZATION_PASSWORD: ${{ secrets.MAC_NOTARIZATION_PASSWORD }} | |
steps: | |
- uses: actions/checkout@v3 | |
- run: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 Build-Binary.command --reset_binaries --branch "${{ env.branch }}" --commit "${{ env.commiturl }}" --commit_date "${{ env.commitdate }}" | |
- run: 'codesign -s "Developer ID Application: Mykola Grymalyuk (S74BDJXQMD)" -v --force --deep --timestamp --entitlements ./payloads/entitlements.plist -o runtime "dist/OpenCore-Patcher.app"' | |
- run: cd dist; ditto -c -k --sequesterRsrc --keepParent OpenCore-Patcher.app ../OpenCore-Patcher-wxPython.app.zip | |
- run: xcrun altool --notarize-app --primary-bundle-id "com.dortania.opencore-legacy-patcher" --username "${{ env.MAC_NOTARIZATION_USERNAME }}" --password "${{ env.MAC_NOTARIZATION_PASSWORD }}" --file OpenCore-Patcher-wxPython.app.zip | |
- run: packagesbuild ./payloads/InstallPackage/AutoPkg-Assets-Setup.pkgproj | |
- run: mv ./OpenCore-Patcher-wxPython.app.zip ./OpenCore-Patcher-GUI.app.zip | |
- name: Upload App to Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: OpenCore-Patcher.app (GUI) | |
path: OpenCore-Patcher-GUI.app.zip | |
- name: Upload Package to Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: AutoPkg-Assets.pkg | |
path: ./dist/AutoPkg-Assets.pkg | |
- name: Upload Binary to Release | |
if: github.event_name == 'release' | |
uses: svenstaro/upload-release-action@e74ff71f7d8a4c4745b560a485cc5fdb9b5b999d | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: OpenCore-Patcher-GUI.app.zip | |
tag: ${{ github.ref }} | |
file_glob: true | |
- name: Upload Package to Release | |
if: github.event_name == 'release' | |
uses: svenstaro/upload-release-action@e74ff71f7d8a4c4745b560a485cc5fdb9b5b999d | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: ./dist/AutoPkg-Assets.pkg | |
tag: ${{ github.ref }} | |
file_glob: true |