Co-authored-by: opencode <opencode@sst.dev>
This commit is contained in:
Dax
2026-01-29 13:17:55 -05:00
committed by GitHub
parent ae9199e101
commit 9ed3b0742f
27 changed files with 368 additions and 367 deletions

View File

@@ -179,4 +179,15 @@ for (const item of targets) {
binaries[name] = Script.version
}
if (Script.release) {
for (const key of Object.keys(binaries)) {
if (key.includes("linux")) {
await $`tar -czf ../../${key}.tar.gz *`.cwd(`dist/${key}/bin`)
} else {
await $`zip -r ../../${key}.zip *`.cwd(`dist/${key}/bin`)
}
}
await $`gh release upload v${Script.version} ./dist/*.zip ./dist/*.tar.gz --clobber`
}
export { binaries }