diff --git a/packages/opencode/script/build.ts b/packages/opencode/script/build.ts index 85e1e105f174..3214ce0e9f28 100755 --- a/packages/opencode/script/build.ts +++ b/packages/opencode/script/build.ts @@ -166,8 +166,11 @@ await $`rm -rf dist` const binaries: Record = {} if (!skipInstall) { - await $`bun install --os="*" --cpu="*" @opentui/core@${pkg.dependencies["@opentui/core"]}` - await $`bun install --os="*" --cpu="*" @parcel/watcher@${pkg.dependencies["@parcel/watcher"]}` + for (const { os, arch } of allTargets) { + console.log(`Installing ${os} - ${arch} dependencies...`) + await $`bun install --os=${os} --cpu=${arch} @opentui/core@${pkg.dependencies["@opentui/core"]}` + await $`bun install --os=${os} --cpu=${arch} @parcel/watcher@${pkg.dependencies["@parcel/watcher"]}` + } } for (const item of targets) { const name = [