diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7d5ed06..2c8858d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -55,5 +55,6 @@ jobs: # macOS notarization API key API_KEY_ID: ${{ secrets.api_key_id }} API_KEY_ISSUER_ID: ${{ secrets.api_key_issuer_id }} + TEAM_ID: ${{ secrets.team_id }} APPLE_ID: ${{ secrets.apple_id }} APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.apple_app_specific_password }} diff --git a/build/afterSignHook.js b/build/afterSignHook.js index 6f2296e..dc004d9 100644 --- a/build/afterSignHook.js +++ b/build/afterSignHook.js @@ -21,8 +21,10 @@ exports.default = async function (context) { try { await notarize({ + tool: 'notarytool', appBundleId, appPath, + teamId: process.env.TEAM_ID, appleId: process.env.APPLE_ID, appleIdPassword: process.env.APPLE_ID_PASSWORD }) diff --git a/electron-builder.json b/electron-builder.json index e109736..63f021a 100644 --- a/electron-builder.json +++ b/electron-builder.json @@ -2,6 +2,7 @@ "productName": "Motrix", "appId": "app.motrix.native", "afterPack": "./build/afterPackHook.js", + "afterSign": "./build/afterSignHook.js", "fileAssociations": [ { "ext": "torrent", @@ -77,7 +78,7 @@ "type": "development", "darkModeSupport": true, "hardenedRuntime": false, - "notarize": true, + "notarize": false, "extraResources": { "from": "./extra/darwin/${arch}/", "to": "./",