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:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user