Skip to content

Commit cdd824a

Browse files
committed
fix: use tar for all platforms instead of zip
1 parent 5c65298 commit cdd824a

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ jobs:
1919
bun-version: latest
2020

2121
- name: Install dependencies
22-
run: |
23-
sudo apt-get update && sudo apt-get install -y zip
24-
bun install
22+
run: bun install
2523

2624
- name: Build CLI
2725
run: |

packages/opencode/script/build.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,9 @@ for (const item of targets) {
207207

208208
if (Script.release) {
209209
for (const key of Object.keys(binaries)) {
210-
if (key.includes("linux")) {
211-
await $`tar -czf ../../${key}.tar.gz *`.cwd(`dist/${key}/bin`)
212-
} else {
213-
await $`zip -r ../../${key}.zip *`.cwd(`dist/${key}/bin`)
214-
}
210+
await $`tar -czf ../../${key}.tar.gz *`.cwd(`dist/${key}/bin`)
215211
}
216-
await $`gh release upload v${Script.version} ./dist/*.zip ./dist/*.tar.gz --clobber --repo ${process.env.GH_REPO}`
212+
await $`gh release upload v${Script.version} ./dist/*.tar.gz --clobber --repo ${process.env.GH_REPO}`
217213
}
218214

219215
export { binaries }

0 commit comments

Comments
 (0)