Skip to content

Commit dee6217

Browse files
committed
fix: create DMG with APFS filesystem to preserve nested framework signatures
Root cause of persistent "signature of the binary is invalid" notarization failures: hdiutil's default HFS+ filesystem adds metadata to the DMG that invalidates signatures on nested frameworks (Sparkle.framework). Local codesign --verify --deep --strict passed, but Apple's notary rejected every submission. Confirmed by experiment: - Zip archive of the same signed app: Accepted - DMG with -fs HFS+ (default): Invalid - DMG with -fs APFS: Accepted Fix: add -fs APFS to the hdiutil create command. No signing changes needed — the earlier speculative commits (Updater.app/Autoupdate signing, --timestamp, Apple intermediate CA import, macos-latest) remain as defensive improvements but none were the actual cause. Also reverts the unnecessary Sparkle 2.6.4 pin; back to "from: 2.0.0".
1 parent d3d8dd3 commit dee6217

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,13 @@ jobs:
191191
cp -r "$APP_BUNDLE" dmg-staging/
192192
ln -s /Applications dmg-staging/Applications
193193
194+
# -fs APFS is critical: the default HFS+ filesystem adds metadata
195+
# that invalidates signatures on nested frameworks (Sparkle.framework),
196+
# causing notarization to reject the DMG as "signature is invalid"
197+
# even though codesign --verify passes locally.
194198
hdiutil create -volname "Hermes Agent" \
195199
-srcfolder dmg-staging \
200+
-fs APFS \
196201
-ov -format UDZO \
197202
"$DMG_NAME"
198203

0 commit comments

Comments
 (0)