瀏覽代碼

fix: sign before notary

Prateek Sunal 1 年之前
父節點
當前提交
e33c0d16f9
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      .github/workflows/desktop.yml

+ 6 - 0
.github/workflows/desktop.yml

@@ -119,6 +119,12 @@ 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: Signing DMG
+        run: |
+          CERT_NAME=$(security find-identity -v -p codesigning | grep "Developer ID Application" | awk -F'"' '{print $2}' | grep -m1 "")
+          codesign --force --timestamp --sign "$CERT_NAME" $APP_NAME.dmg
+          codesign --verify --verbose=4 $APP_NAME.dmg
+
       - name: Notarize and Staple DMG
       - name: Notarize and Staple DMG
         env:
         env:
           APPLE_ID: ${{ secrets.APPLE_ID }}
           APPLE_ID: ${{ secrets.APPLE_ID }}