Commit c672f46
Shrink oz CLI tarball via async/** exclude + release-cli profile
Reduces the macOS CLI tarball from ~120 MiB → 43 MiB gzipped (−64%) and
the Linux CLI tarball from ~66 MiB → 49 MiB gzipped (−26%) by adapting
two techniques the WASM build already uses:
1. Exclude `async/**` from the embedded `Assets` set for standalone CLI
builds, mirroring the existing WASM carve-out. Drops ~57 MiB of
PNGs/JPGs that the headless CLI never renders.
2. Add a `release-cli` cargo profile (`opt-level = "s"`, `lto = "fat"`,
`codegen-units = 1`) plus a `_debug_assertions` mirror for dev/local
channels. Wire `--artifact cli` to use it from script/{macos,linux}/bundle.
3. Strip the macOS CLI binary post-build (`strip -S` for dev, `strip -x`
for prod), mirroring Linux's existing strip step. dSYM is unaffected
because of `split-debuginfo = "packed"` and CI continues uploading
it to Sentry separately.
`panic = "abort"` was intentionally excluded from the profile because
app/src/persistence/sqlite.rs:273 relies on `catch_unwind` to prevent
panics from unwinding across the SQLite FFI boundary.
Co-Authored-By: Oz <oz-agent@warp.dev>1 parent bc3fffa commit c672f46
4 files changed
Lines changed: 43 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
456 | 472 | | |
457 | 473 | | |
458 | 474 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
315 | 321 | | |
316 | 322 | | |
317 | 323 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
122 | 126 | | |
123 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
124 | 132 | | |
125 | 133 | | |
126 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
254 | 258 | | |
255 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
256 | 264 | | |
257 | 265 | | |
258 | 266 | | |
| |||
0 commit comments