diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b352a89..3bb90f9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,6 +47,8 @@ jobs: run: npm run build:${{ matrix.platform }} env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CSC_LINK: ${{ secrets.APPLE_CERTIFICATE }} + CSC_KEY_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} - name: Upload release assets uses: softprops/action-gh-release@v2 diff --git a/build/entitlements.mac.plist b/build/entitlements.mac.plist new file mode 100644 index 0000000..c0052ff --- /dev/null +++ b/build/entitlements.mac.plist @@ -0,0 +1,14 @@ + + + + + com.apple.security.cs.allow-jit + + com.apple.security.cs.allow-unsigned-executable-memory + + com.apple.security.cs.disable-library-validation + + com.apple.security.network.client + + + diff --git a/package.json b/package.json index af024f5..c6dc94e 100644 --- a/package.json +++ b/package.json @@ -79,8 +79,14 @@ }, "mac": { "category": "public.app-category.productivity", + "target": ["dmg"], "artifactName": "${productName}-${version}-${arch}.${ext}", - "icon": "public/icons/mac/icon.icns" + "icon": "public/icons/mac/icon.icns", + "hardenedRuntime": true, + "gatekeeperAssess": false, + "entitlements": "build/entitlements.mac.plist", + "entitlementsInherit": "build/entitlements.mac.plist", + "forceCodeSigning": false }, "win": { "target": "nsis",