Prateek Sunal преди 1 година
родител
ревизия
b5328d84ab
променени са 1 файла, в които са добавени 7 реда и са изтрити 3 реда
  1. 7 3
      .github/workflows/desktop.yml

+ 7 - 3
.github/workflows/desktop.yml

@@ -107,7 +107,7 @@ jobs:
           # Use profile in current project
           # Use profile in current project
           xcode-project use-profiles --project=macos/**/*.xcodeproj
           xcode-project use-profiles --project=macos/**/*.xcodeproj
 
 
-      - name: Dmg dependencies
+      - name: DMG build dependencies
         run: |
         run: |
           python3 -m pip install setuptools
           python3 -m pip install setuptools
           npm install -g appdmg
           npm install -g appdmg
@@ -119,13 +119,17 @@ jobs:
           flutter_distributor package --platform=macos --targets=dmg --skip-clean
           flutter_distributor package --platform=macos --targets=dmg --skip-clean
           mv dist/**/ente_auth-*-macos.dmg $APP_NAME.dmg
           mv dist/**/ente_auth-*-macos.dmg $APP_NAME.dmg
 
 
-      - name: Notarize DMG
+      - name: Notarize and Staple DMG
         env:
         env:
           APPLE_ID: ${{ secrets.APPLE_ID }}
           APPLE_ID: ${{ secrets.APPLE_ID }}
           APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
           APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
           APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
           APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
         run: |
         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
           xcrun stapler staple $APP_NAME.dmg
 
 
       - uses: svenstaro/upload-release-action@latest
       - uses: svenstaro/upload-release-action@latest