From a76dd8323a954cd1a5a579c337b04b37c72739a0 Mon Sep 17 00:00:00 2001 From: Marius Date: Thu, 12 Feb 2026 11:49:06 +0100 Subject: [PATCH] fix: use explicit archive paths in release upload instead of shell globs (#274) --- packages/opencode/script/build.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/opencode/script/build.ts b/packages/opencode/script/build.ts index 4f7cb147956..8862de53897 100755 --- a/packages/opencode/script/build.ts +++ b/packages/opencode/script/build.ts @@ -184,15 +184,18 @@ for (const item of targets) { } if (Script.release) { + const archives: string[] = [] // kilocode_change for (const key of Object.keys(binaries)) { const archive = key.replace(pkg.name, "kilo") // kilocode_change if (key.includes("linux")) { await $`tar -czf ../../${archive}.tar.gz *`.cwd(`dist/${key}/bin`) // kilocode_change + archives.push(`./dist/${archive}.tar.gz`) // kilocode_change } else { await $`zip -r ../../${archive}.zip *`.cwd(`dist/${key}/bin`) // kilocode_change + archives.push(`./dist/${archive}.zip`) // kilocode_change } } - await $`gh release upload v${Script.version} ./dist/*.zip ./dist/*.tar.gz --clobber` + await $`gh release upload v${Script.version} ${archives} --clobber` // kilocode_change } export { binaries }