From b93ceb3fba0cda53a5629f8137100a1deab95e28 Mon Sep 17 00:00:00 2001 From: ingbyr Date: Wed, 29 Apr 2026 16:55:17 +0800 Subject: [PATCH] chore: Refactor dependency installation for multiple targets --- packages/opencode/script/build.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 = [