fix(cli): install musl native packages for cross builds on Bun 1.4.4 (#58398)

This commit is contained in:
Luke Parker
2026-10-23 18:30:21 +10:00
committed by GitHub
Unverified
parent a5dddc507e
commit 74f8d4860f
+2 -1
View File
@@ -66,8 +66,9 @@ const targets =
: allTargets
if (!targets.length) throw new Error(`Unknown build target: ${requestedTarget}`)
// Bun 1.4.4 skips native packages for the other libc by default, but the musl targets need them.
if (!skipInstall)
await $`bun install --os="*" --cpu="*" @opentui/core@${pkg.dependencies["@opentui/core"]} @opencode-ai/pty@${pkg.dependencies["@opencode-ai/pty"]}`
await $`bun install --os="*" --cpu="*" --libc="*" @opentui/core@${pkg.dependencies["@opentui/core"]} @opencode-ai/pty@${pkg.dependencies["@opencode-ai/pty"]}`
const appArchive = path.join(dir, ".cache", "bun-app-archive.bin")
await Bun.write(appArchive, await buildAppArchive(Script.channel, { skipBuild: skipWebUi }))
const appAssetsPlugin: BunPlugin = {