Skip to content

Commit b244bdd

Browse files
dbfxclaude
andauthored
feat: add macOS code signing and notarization to release workflow (#3)
Adds signing env vars (CSC_LINK, APPLE_ID, etc.) and enables notarization in electron-builder config. Requires repo secrets to be configured. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4feb196 commit b244bdd

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ jobs:
9393
AZURE_TENANT_ID: ${{ runner.os == 'Windows' && secrets.AZURE_TENANT_ID || '' }}
9494
AZURE_CLIENT_ID: ${{ runner.os == 'Windows' && secrets.AZURE_CLIENT_ID || '' }}
9595
AZURE_CLIENT_SECRET: ${{ runner.os == 'Windows' && secrets.AZURE_CLIENT_SECRET || '' }}
96+
CSC_LINK: ${{ runner.os == 'macOS' && secrets.MAC_CERTIFICATE_P12 || '' }}
97+
CSC_KEY_PASSWORD: ${{ runner.os == 'macOS' && secrets.MAC_CERTIFICATE_PASSWORD || '' }}
98+
APPLE_ID: ${{ runner.os == 'macOS' && secrets.APPLE_ID || '' }}
99+
APPLE_APP_SPECIFIC_PASSWORD: ${{ runner.os == 'macOS' && secrets.APPLE_APP_SPECIFIC_PASSWORD || '' }}
100+
APPLE_TEAM_ID: ${{ runner.os == 'macOS' && secrets.APPLE_TEAM_ID || '' }}
96101
run: |
97102
npx electron-vite build
98103
if [ "$RUNNER_OS" = "Windows" ]; then

electron-builder.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ mac:
4242
- arm64
4343
icon: resources/icon.png
4444
category: public.app-categories.utilities
45-
identity: null
45+
hardenedRuntime: true
46+
entitlements: resources/entitlements.mac.plist
47+
entitlementsInherit: resources/entitlements.mac.plist
48+
notarize: true
4649
artifactName: Kudu-${version}-${arch}.${ext}
4750

4851
linux:

0 commit comments

Comments
 (0)