From 02190df8a650bcdbfd694cd5e299718f2124c1b0 Mon Sep 17 00:00:00 2001 From: LukeParkerDev <10430890+Hona@users.noreply.github.com> Date: Fri, 23 Oct 2026 18:23:33 +1000 Subject: [PATCH] fix(cli): install musl native packages for cross builds on Bun 1.4.4 --- packages/cli/script/build.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/script/build.ts b/packages/cli/script/build.ts index 3cac51e9c2a5..a84cb5452203 100755 --- a/packages/cli/script/build.ts +++ b/packages/cli/script/build.ts @@ -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 = {