Skip to content

Commit d3fcf32

Browse files
ishikawa-proclaude
andcommitted
fix: improve macOS app signing to avoid Gatekeeper issues
- Simplify codesign process following Alacritty's approach - Add electron-builder config for macOS development builds - Bump version to 0.1.5 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9fd37a1 commit d3fcf32

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

.github/workflows/build-and-release.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,13 @@ jobs:
4848
APP_PATH=$(find dist -name "*.app" -type d | head -1)
4949
if [ -n "$APP_PATH" ]; then
5050
echo "Applying ad hoc signature to: $APP_PATH"
51-
# Sign all frameworks and helpers first
52-
find "$APP_PATH" -name "*.framework" -o -name "*.app" | while read framework; do
53-
echo "Signing: $framework"
54-
codesign --remove-signature "$framework" 2>/dev/null || true
55-
codesign --force --sign - "$framework" || echo "Failed to sign: $framework"
56-
done
57-
# Sign the main app bundle
58-
codesign --remove-signature "$APP_PATH" || true
51+
# Remove existing signature
52+
codesign --remove-signature "$APP_PATH"
53+
# Apply new signature with deep option
5954
codesign --force --deep --sign - "$APP_PATH"
6055
echo "Ad hoc signature applied successfully"
6156
# Verify signature
62-
codesign --verify --verbose "$APP_PATH" || echo "Signature verification failed"
57+
codesign --verify --verbose "$APP_PATH"
6358
else
6459
echo "No .app bundle found in dist directory"
6560
fi

electron-builder.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
"icon": "logo.png",
2323
"binaries": [
2424
"cli.js"
25-
]
25+
],
26+
"hardenedRuntime": false,
27+
"gatekeeperAssess": false,
28+
"identity": null,
29+
"type": "development"
2630
},
2731
"win": {
2832
"target": "nsis",

0 commit comments

Comments
 (0)