Skip to content

Commit 0012899

Browse files
committed
🤖 Add macOS notarization support
- Configure electron-builder to notarize DMGs when credentials provided - Add environment variables for APPLE_ID, APPLE_APP_SPECIFIC_PASSWORD, APPLE_TEAM_ID - Notarization is optional - builds will succeed without credentials but skip notarization _Generated with `cmux`_
1 parent 56b251c commit 0012899

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,17 @@ jobs:
3434
export CSC_LINK="/tmp/certificate.p12"
3535
export CSC_KEY_PASSWORD="${{ secrets.MACOS_CERTIFICATE_PWD }}"
3636
fi
37+
38+
# Notarization credentials (optional - will skip if not provided)
39+
if [ -n "${{ secrets.APPLE_ID }}" ]; then
40+
export APPLE_ID="${{ secrets.APPLE_ID }}"
41+
export APPLE_APP_SPECIFIC_PASSWORD="${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}"
42+
export APPLE_TEAM_ID="${{ secrets.APPLE_TEAM_ID }}"
43+
echo "✅ Notarization credentials found - will notarize"
44+
else
45+
echo "⚠️ No notarization credentials - skipping notarization"
46+
fi
47+
3748
bun run dist:mac
3849
3950
- name: Upload macOS DMG (x64)

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,10 @@
116116
"hardenedRuntime": true,
117117
"gatekeeperAssess": false,
118118
"entitlements": "build/entitlements.mac.plist",
119-
"entitlementsInherit": "build/entitlements.mac.plist"
119+
"entitlementsInherit": "build/entitlements.mac.plist",
120+
"notarize": {
121+
"teamId": "4399GN35BJ"
122+
}
120123
},
121124
"linux": {
122125
"target": "AppImage",

0 commit comments

Comments
 (0)