Skip to content

Commit 8b3af7f

Browse files
authored
🤖 Add macOS notarization support (#90)
1 parent b0d1f31 commit 8b3af7f

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,19 @@ 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.AC_APIKEY_ID }}" ]; then
40+
# Decode API key to file
41+
echo "${{ secrets.AC_APIKEY_P8_BASE64 }}" | base64 -D > /tmp/AuthKey.p8
42+
export APPLE_API_KEY="/tmp/AuthKey.p8"
43+
export APPLE_API_KEY_ID="${{ secrets.AC_APIKEY_ID }}"
44+
export APPLE_API_ISSUER="${{ secrets.AC_APIKEY_ISSUER_ID }}"
45+
echo "✅ Notarization credentials found (API key) - will notarize"
46+
else
47+
echo "⚠️ No notarization credentials - skipping notarization"
48+
fi
49+
3750
bun run dist:mac
3851
3952
- name: Upload macOS DMG (x64)

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@
123123
"hardenedRuntime": true,
124124
"gatekeeperAssess": false,
125125
"entitlements": "build/entitlements.mac.plist",
126-
"entitlementsInherit": "build/entitlements.mac.plist"
126+
"entitlementsInherit": "build/entitlements.mac.plist",
127+
"notarize": true
127128
},
128129
"linux": {
129130
"target": "AppImage",

0 commit comments

Comments
 (0)