Skip to content

Commit b6d8b2b

Browse files
committed
fix: codesign logic
1 parent 11f58c0 commit b6d8b2b

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,18 @@ 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
5158
codesign --remove-signature "$APP_PATH" || true
52-
codesign --deep --force --sign - "$APP_PATH"
59+
codesign --force --deep --sign - "$APP_PATH"
5360
echo "Ad hoc signature applied successfully"
61+
# Verify signature
62+
codesign --verify --verbose "$APP_PATH" || echo "Signature verification failed"
5463
else
5564
echo "No .app bundle found in dist directory"
5665
fi

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "diff-viewer",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"description": "A rich Git diff viewer with syntax highlighting",
55
"main": "build/electron/main.js",
66
"homepage": "./",

0 commit comments

Comments
 (0)