Commit 025fa19
committed
fix(release): ship claude sidecar as resource, not externalBin
Bun-compiled binaries (~100MB) have an unusual ELF layout: the dynamic
section sits at offset 96MB, after Bun's appended JS payload. patchelf,
which linuxdeploy invokes during AppImage bundling to set rpath on
every ELF in usr/bin/, corrupts the binary when it tries to relocate
that dynamic section. The corruption only manifests on the gtk plugin's
recursive linuxdeploy pass: ldd then fails on the corrupted binary,
linuxdeploy throws std::runtime_error, and the AppImage build aborts:
[gtk/stderr] terminate called after throwing an instance of 'std::runtime_error'
[gtk/stderr] what(): Failed to run ldd: exited with code 1
agent-browser (8MB, normal layout) survives the same patchelf step
with only a warning, which is why it's been shipping fine.
Move the sidecar from externalBin (usr/bin/) to resources (usr/share/),
which linuxdeploy does not scan. Update setup() to resolve the bundled
path via AppHandle::path().resource_dir() and pin it via
CODEMUX_CLAUDE_SIDECAR_PATH so the adapter (which has no AppHandle
access) can find it.1 parent c34095b commit 025fa19
2 files changed
Lines changed: 36 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
521 | 553 | | |
522 | 554 | | |
523 | 555 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
0 commit comments