Skip to content

Commit

Permalink
fix more build bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jivey committed Dec 17, 2024
1 parent 5ec0c32 commit 2721d41
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ jobs:
- os: macos-latest
name: macos-default
- os: macos-13
name: macos-x86
name: macos-intel
- os: ubuntu-latest
name: ubuntu-x64
arch: x64
runs-on: ${{ matrix.os }}

Expand All @@ -41,7 +42,7 @@ jobs:
run: bun run init

- name: macOS - Build
if: matrix.name == 'macos-default' || matrix.name == 'macos-x86'
if: matrix.name == 'macos-default' || matrix.name == 'macos-intel'
run: |
source venv-pywebview/bin/activate
bun run build
Expand Down Expand Up @@ -75,7 +76,7 @@ jobs:
timestamp-digest: SHA256

- name: macOS - Sign artifact
if: matrix.name == 'macos-default' || matrix.name == 'macos-x86'
if: matrix.name == 'macos-default' || matrix.name == 'macos-intel'
run: |
echo ${{ secrets.MACOS_CERTIFICATE }} | base64 --decode > certificate.p12
Expand All @@ -89,7 +90,7 @@ jobs:
/usr/bin/codesign -v ./build/SDT2.app
- name: macOS - Notarize artifact
if: matrix.name == 'macos-default' || matrix.name == 'macos-x86'
if: matrix.name == 'macos-default' || matrix.name == 'macos-intel'
run: |
ditto -c -k --keepParent "build/SDT2.app" "build/SDT2.app.zip"
xcrun notarytool store-credentials "notarytool-profile" --apple-id "${{ secrets.MACOS_NOTARIZATION_APPLE_ID }}" --team-id "${{ secrets.MACOS_NOTARIZATION_TEAM_ID }}" --password "${{ secrets.MACOS_NOTARIZATION_PWD }}" > /dev/null
Expand All @@ -111,5 +112,5 @@ jobs:
path: |
${{ matrix.name == 'windows-onefile' && 'build/SDT2.exe' || '' }}
${{ matrix.name == 'windows-standalone' && 'SDT2.zip' || '' }}
${{ (matrix.name == 'macos-default' || matrix.name == 'macos-x86') && 'build/SDT2.app.zip' || '' }}
${{ (matrix.name == 'macos-default' || matrix.name == 'macos-intel') && 'build/SDT2.app.zip' || '' }}
${{ (matrix.os == 'ubuntu-latest' || (matrix.os == 'ubuntu-22.04' && matrix.arch == 'arm64')) && 'build/SDT2.tar.gz' || '' }}

0 comments on commit 2721d41

Please sign in to comment.