From b5328d84ab778878f6716d488a185cfd1c21b6df Mon Sep 17 00:00:00 2001 From: Prateek Sunal Date: Tue, 13 Feb 2024 18:53:04 +0530 Subject: [PATCH] fix: notary --- .github/workflows/desktop.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/desktop.yml b/.github/workflows/desktop.yml index 1528f4e10f..567e59e1bc 100644 --- a/.github/workflows/desktop.yml +++ b/.github/workflows/desktop.yml @@ -107,7 +107,7 @@ jobs: # Use profile in current project xcode-project use-profiles --project=macos/**/*.xcodeproj - - name: Dmg dependencies + - name: DMG build dependencies run: | python3 -m pip install setuptools npm install -g appdmg @@ -119,13 +119,17 @@ jobs: flutter_distributor package --platform=macos --targets=dmg --skip-clean mv dist/**/ente_auth-*-macos.dmg $APP_NAME.dmg - - name: Notarize DMG + - name: Notarize and Staple DMG env: APPLE_ID: ${{ secrets.APPLE_ID }} APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} run: | - xcrun altool --notarize-app --primary-bundle-id "io.ente.auth.mac" --username $APPLE_ID --password $APPLE_PASSWORD --asc-provider $APPLE_TEAM_ID --file $APP_NAME.dmg + xcrun notarytool submit $APP_NAME.dmg \ + --wait \ + --apple-id $APPLE_ID \ + --password $APPLE_PASSWORD \ + --team-id $APPLE_TEAM_ID xcrun stapler staple $APP_NAME.dmg - uses: svenstaro/upload-release-action@latest