A full-featured download manager.
refactor: electron build notarization
Dr_rOotb9068559e286
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex afe40105..7d5ed069 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -36,13 +36,6 @@ jobs:if: startsWith(matrix.os, 'ubuntu')run: snapcraft --help- - name: Prepare for app notarization (macOS)- 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 appuses: motrixapp/action-electron-builder@v2with:@@ -57,9 +50,10 @@ jobs:# If the commit is tagged with a version (e.g. "v1.0.0"),# release the app after building- release: ${{ secrets.skip_release != 'true' }}+ release: ${{ vars.skip_publish != 'true' }}env:# macOS notarization API keyAPI_KEY_ID: ${{ secrets.api_key_id }}API_KEY_ISSUER_ID: ${{ secrets.api_key_issuer_id }}- SKIP_NOTARIZE: ${{ secrets.skip_notarize == 'true' }}+ APPLE_ID: ${{ secrets.apple_id }}+ APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.apple_app_specific_password }}diff --git a/electron-builder.json b/electron-builder.jsonindex 63f021aa..1faac740 100644--- a/electron-builder.json+++ b/electron-builder.json@@ -2,7 +2,6 @@"productName": "Motrix","appId": "app.motrix.native","afterPack": "./build/afterPackHook.js",- "afterSign": "./build/afterSignHook.js","fileAssociations": [{"ext": "torrent",@@ -78,7 +77,9 @@"type": "development","darkModeSupport": true,"hardenedRuntime": false,- "notarize": false,+ "notarize": {+ "tool": "notarytool"+ },"extraResources": {"from": "./extra/darwin/${arch}/","to": "./",