Commit 1484cf6
committed
fix: add Frameworks rpath to bundle — Sparkle now loadable
Every release bundle since we switched to Sparkle has shipped broken:
SPM's linker only stamps @loader_path into LC_RPATH, which resolves to
Contents/MacOS/. Sparkle.framework lives at Contents/Frameworks/, so dyld
halts at launch with
Library not loaded: @rpath/Sparkle.framework/Versions/B/Sparkle
Reason: tried '.../Contents/MacOS/Sparkle.framework/...' (no such file)
and macOS shows \"Kiln cannot be opened because of a problem\" with no
hint as to what went wrong. make-app-bundle.sh now patches the binary
with `install_name_tool -add_rpath @executable_path/../Frameworks` right
after copying it, before codesign runs — so the fix survives signing.1 parent 9a7205a commit 1484cf6
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
64 | 72 | | |
65 | 73 | | |
66 | 74 | | |
| |||
0 commit comments