Universal build mac

This commit is contained in:
Pierre Jacquier
2024-09-01 09:28:06 -04:00
parent 11c821d0ce
commit f4fb042104
2 changed files with 9 additions and 6 deletions

View File

@ -154,7 +154,8 @@ jobs:
TAURI_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
VERSION: ${{ github.event_name == 'release' && format('v{0}', needs.prepare-files.outputs.version) || needs.prepare-files.outputs.version }}
run: |
for ARCH in arm64 x64; do
# for ARCH in arm64 x64; do
for ARCH in universal; do
TAURI_DIR=out/tauri/${{ env.version }}/macos/$ARCH
mkdir -p $TAURI_DIR
unzip out/*-$ARCH-mac.zip -d $TAURI_DIR
@ -178,7 +179,7 @@ jobs:
runs-on: ubuntu-22.04
permissions:
contents: write
# if: ${{ github.event_name == 'release' || github.event_name == 'schedule' }}
if: ${{ github.event_name == 'release' || github.event_name == 'schedule' }}
needs: [prepare-files, build-apps]
env:
# VERSION_NO_V: ${{ needs.prepare-json-files.outputs.version }}

View File

@ -13,12 +13,14 @@ mac:
target:
- target: dmg
arch:
- x64
- arm64
- universal
# - x64
# - arm64
- target: zip
arch:
- x64
- arm64
- universal
# - x64
# - arm64
notarize:
teamId: 92H8YB3B95