Commit edb517f
authored
Re-sign compiled macOS binaries so bun compile output launches on macOS 27 (#984)
* fix(build): re-sign compiled macOS binary after bun compile
`bun build --compile` appends the JS payload to Bun's linker-signed
executable without re-signing it (oven-sh/bun#32159). The embedded
signature no longer matches the file, and macOS 26+/27 SIGKILLs the
binary at launch with exit 137 and no output, while `bun run start`
keeps working because it never touches the signature.
Ad-hoc re-sign `dist/corbits` in `build:bin` on Darwin hosts, and
re-sign every `bun-darwin-*` target in the release script's
compile_bin so cut releases launch on current macOS.
* fix(release): fail smoke test on SIGKILLed binary
The release smoke test only treated exit 126 and 127 as exec failures,
so a compiled macOS binary killed by the kernel for an invalid code
signature (exit 137) passed silently and would have shipped dead on
arrival. Treat 137 as a fatal smoke failure.1 parent dc46ba8 commit edb517f
2 files changed
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
140 | 146 | | |
141 | 147 | | |
142 | 148 | | |
143 | 149 | | |
144 | 150 | | |
145 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
146 | 161 | | |
147 | 162 | | |
148 | 163 | | |
| |||
161 | 176 | | |
162 | 177 | | |
163 | 178 | | |
164 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
165 | 182 | | |
166 | 183 | | |
167 | 184 | | |
| |||
0 commit comments