cocktailpeanut 1 月之前
父节点
当前提交
d0ca67a3fa
共有 2 个文件被更改,包括 19 次插入12 次删除
  1. 15 9
      .github/workflows/build.yml
  2. 4 3
      package.json

+ 15 - 9
.github/workflows/build.yml

@@ -108,12 +108,12 @@ jobs:
         with:
           node-version: 22
 
-      - name: Prepare for app notarization
-        if: startsWith(matrix.os, 'macos')
-        # Import Apple API key for app notarization on macOS
-        run: |
-          mkdir -p ~/private_keys/
-          echo '${{ secrets.api_key }}' > ~/private_keys/AuthKey_${{ secrets.api_key_id }}.p8
+#      - name: Prepare for app notarization
+#        if: startsWith(matrix.os, 'macos')
+#        # Import Apple API key for app notarization on macOS
+#        run: |
+#          mkdir -p ~/private_keys/
+#          echo '${{ secrets.api_key }}' > ~/private_keys/AuthKey_${{ secrets.api_key_id }}.p8
 
 
       - name: Build/release Electron app
@@ -132,9 +132,15 @@ jobs:
           mac_certs_password: ${{ secrets.mac_certs_password }}
         env:
           # macOS notarization API key
-          API_KEY_ID: ${{ secrets.api_key_id }}
-          API_KEY_ISSUER_ID: ${{ secrets.api_key_issuer_id }}
-
+          #API_KEY_ID: ${{ secrets.api_key_id }}
+          #API_KEY_ISSUER_ID: ${{ secrets.api_key_issuer_id }}
+          APPLE_ID: ${{ secrets.APPLE_ID }}
+          APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
+          APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
+
+      - name: Show notarization-error.log
+        if: failure()
+        run: cat dist-darwin/**/notarization-error.log || echo "No notarization-error.log found"
 
   linux:
     needs: "create-release"

+ 4 - 3
package.json

@@ -1,7 +1,7 @@
 {
   "name": "Pinokio",
   "private": true,
-  "version": "3.20.1",
+  "version": "3.20.2",
   "homepage": "https://pinokio.co",
   "description": "pinokio",
   "main": "main.js",
@@ -78,7 +78,8 @@
           ]
         }
       ],
-			"hardenedRuntime": true
+			"hardenedRuntime": true,
+      "notarize": true
     },
     "linux": {
       "maintainer": "Cocktail Peanut <cocktailpeanuts@proton.me>",
@@ -122,7 +123,7 @@
   "dependencies": {
     "electron-store": "^8.1.0",
     "electron-window-state": "^5.0.3",
-    "pinokiod": "^3.20.1"
+    "pinokiod": "^3.20.2"
   },
   "devDependencies": {
     "@electron/rebuild": "3.2.10",