Skip to content

Commit 14e9bc0

Browse files
committed
fix(macos): remove entitlements from Go binary signing
Go CLI binaries don't need entitlements like Electron apps do. The error 'AMFIUnserializeXML: syntax error' occurred because Electron app entitlements (app-sandbox, allow-jit, camera access) are not applicable to standalone CLI executables. CLI tools only need: - Code signing identity - Hardened runtime (--options runtime) - Timestamp for notarization This is the standard approach for signing Go binaries on macOS. https://claude.ai/code/session_01U9NtT9hmX68VAbYp5x2Pi1
1 parent 19cc470 commit 14e9bc0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,20 +350,18 @@ jobs:
350350
run: |
351351
echo "Signing Go binaries with identity: $CODESIGN_IDENTITY"
352352
353-
# Sign px binary
353+
# Sign px binary (without entitlements - CLI tools don't need them)
354354
codesign --force \
355355
--sign "$CODESIGN_IDENTITY" \
356356
--options runtime \
357357
--timestamp \
358-
--entitlements build/entitlements.mac.plist \
359358
src-go/px
360359
361360
# Sign px-service binary
362361
codesign --force \
363362
--sign "$CODESIGN_IDENTITY" \
364363
--options runtime \
365364
--timestamp \
366-
--entitlements build/entitlements.mac.plist \
367365
src-service/px-service
368366
369367
# Verify signatures

0 commit comments

Comments
 (0)