mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
fix: use explicit archive paths in release upload instead of shell globs (#274)
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user