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 = {