feat: osx sign and notarize (#114)

* feat: osx sign and notarize

* chore: env

* feat: disable notarizing

* feat: KEYCHAIN_PATH

* feat: enable osx notarize
This commit is contained in:
DIYgod
2024-07-06 21:31:13 +08:00
committed by GitHub
parent 762085b878
commit ead135a2bd
3 changed files with 16 additions and 10 deletions
+5
View File
@@ -77,6 +77,11 @@ jobs:
run: pnpm i
- name: Build
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
KEYCHAIN_PATH: ${{ runner.temp }}/app-signing.keychain-db
run: pnpm build
- name: Upload file
-10
View File
@@ -4,15 +4,5 @@
<dict>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.print</key>
<true/>
</dict>
</plist>
+11
View File
@@ -15,6 +15,17 @@ const config: ForgeConfig = {
/(.eslintrc.json)|(.gitignore)|(electron.vite.config.ts)|(forge.config.ts)|(tsconfig.*)/,
],
asar: true,
osxSign: {
optionsForFile: () => ({
entitlements: "build/entitlements.mac.plist",
}),
keychain: process.env.KEYCHAIN_PATH,
},
osxNotarize: {
appleId: process.env.APPLE_ID!,
appleIdPassword: process.env.APPLE_PASSWORD!,
teamId: process.env.APPLE_TEAM_ID!,
},
},
rebuildConfig: {},
makers: [