mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-19 00:03:13 +03:00
fix(cli): install musl native packages for cross builds on Bun 1.4.4 (#58398)
This commit is contained in:
committed by
GitHub
Unverified
parent
a5dddc507e
commit
74f8d4860f
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user