Skip to content

Commit beb6279

Browse files
jared-duvalclaude
andcommitted
Fix signing: add timestamp, sign Frameworks folder
- Add --timestamp flag to all codesign commands - Sign Python framework and Pandoc binaries in Contents/Frameworks - Sign all executables in both MacOS and Frameworks folders Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 418239c commit beb6279

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,32 @@ jobs:
5555
- name: Sign app
5656
run: |
5757
cd dist
58+
IDENTITY="Developer ID Application: Jared Scott Duval (FH7G4JHQUE)"
5859
xattr -cr "Budget Justification Generator.app"
60+
5961
# Sign all .so and .dylib files
60-
find "Budget Justification Generator.app" -type f \( -name "*.so" -o -name "*.dylib" \) -exec codesign --force --options runtime --sign "Developer ID Application: Jared Scott Duval (FH7G4JHQUE)" {} \;
61-
# Sign ALL executable files in MacOS folder (including Pandoc, Python, etc.)
62-
find "Budget Justification Generator.app/Contents/MacOS" -type f -perm +111 -exec codesign --force --options runtime --sign "Developer ID Application: Jared Scott Duval (FH7G4JHQUE)" {} \;
62+
find "Budget Justification Generator.app" -type f \( -name "*.so" -o -name "*.dylib" \) -exec codesign --force --timestamp --options runtime --sign "$IDENTITY" {} \;
63+
64+
# Sign Python framework
65+
find "Budget Justification Generator.app/Contents/Frameworks" -type f -perm +111 -exec codesign --force --timestamp --options runtime --sign "$IDENTITY" {} \;
66+
67+
# Sign Pandoc binaries in Frameworks
68+
if [ -f "Budget Justification Generator.app/Contents/Frameworks/pandoc-arm64" ]; then
69+
codesign --force --timestamp --options runtime --sign "$IDENTITY" "Budget Justification Generator.app/Contents/Frameworks/pandoc-arm64"
70+
fi
71+
if [ -f "Budget Justification Generator.app/Contents/Frameworks/pandoc-x86_64" ]; then
72+
codesign --force --timestamp --options runtime --sign "$IDENTITY" "Budget Justification Generator.app/Contents/Frameworks/pandoc-x86_64"
73+
fi
74+
75+
# Sign executables in MacOS folder
76+
find "Budget Justification Generator.app/Contents/MacOS" -type f -perm +111 -exec codesign --force --timestamp --options runtime --sign "$IDENTITY" {} \;
77+
6378
# Sign main executable explicitly
64-
codesign --force --options runtime --sign "Developer ID Application: Jared Scott Duval (FH7G4JHQUE)" "Budget Justification Generator.app/Contents/MacOS/Budget Justification Generator"
79+
codesign --force --timestamp --options runtime --sign "$IDENTITY" "Budget Justification Generator.app/Contents/MacOS/Budget Justification Generator"
80+
6581
# Sign app bundle
66-
codesign --force --options runtime --sign "Developer ID Application: Jared Scott Duval (FH7G4JHQUE)" "Budget Justification Generator.app"
82+
codesign --force --timestamp --options runtime --sign "$IDENTITY" "Budget Justification Generator.app"
83+
6784
# Verify signing
6885
codesign --verify --deep --strict --verbose=2 "Budget Justification Generator.app"
6986

0 commit comments

Comments
 (0)