@@ -59,12 +59,16 @@ if (!Script.preview) {
5959
6060if ( ! Script . preview ) {
6161 for ( const key of Object . keys ( binaries ) ) {
62- await $ `cd dist/${ key } /bin && zip -r ../../${ key } .zip *`
62+ if ( key . includes ( "linux" ) ) {
63+ await $ `cd dist/${ key } /bin && tar -czf ../../${ key } .tar.gz *`
64+ } else {
65+ await $ `cd dist/${ key } /bin && zip -r ../../${ key } .zip *`
66+ }
6367 }
6468
6569 // Calculate SHA values
66- const arm64Sha = await $ `sha256sum ./dist/opencode-linux-arm64.zip | cut -d' ' -f1` . text ( ) . then ( ( x ) => x . trim ( ) )
67- const x64Sha = await $ `sha256sum ./dist/opencode-linux-x64.zip | cut -d' ' -f1` . text ( ) . then ( ( x ) => x . trim ( ) )
70+ const arm64Sha = await $ `sha256sum ./dist/opencode-linux-arm64.tar.gz | cut -d' ' -f1` . text ( ) . then ( ( x ) => x . trim ( ) )
71+ const x64Sha = await $ `sha256sum ./dist/opencode-linux-x64.tar.gz | cut -d' ' -f1` . text ( ) . then ( ( x ) => x . trim ( ) )
6872 const macX64Sha = await $ `sha256sum ./dist/opencode-darwin-x64.zip | cut -d' ' -f1` . text ( ) . then ( ( x ) => x . trim ( ) )
6973 const macArm64Sha = await $ `sha256sum ./dist/opencode-darwin-arm64.zip | cut -d' ' -f1` . text ( ) . then ( ( x ) => x . trim ( ) )
7074
@@ -88,10 +92,10 @@ if (!Script.preview) {
8892 "conflicts=('opencode')" ,
8993 "depends=('fzf' 'ripgrep')" ,
9094 "" ,
91- `source_aarch64=("\${pkgname}_\${pkgver}_aarch64.zip ::https://github.com/sst/opencode/releases/download/v\${pkgver}\${_subver}/opencode-linux-arm64.zip ")` ,
95+ `source_aarch64=("\${pkgname}_\${pkgver}_aarch64.tar.gz ::https://github.com/sst/opencode/releases/download/v\${pkgver}\${_subver}/opencode-linux-arm64.tar.gz ")` ,
9296 `sha256sums_aarch64=('${ arm64Sha } ')` ,
93- "" ,
94- `source_x86_64=("\${pkgname}_\${pkgver}_x86_64.zip ::https://github.com/sst/opencode/releases/download/v\${pkgver}\${_subver}/opencode-linux-x64.zip ")` ,
97+
98+ `source_x86_64=("\${pkgname}_\${pkgver}_x86_64.tar.gz ::https://github.com/sst/opencode/releases/download/v\${pkgver}\${_subver}/opencode-linux-x64.tar.gz ")` ,
9599 `sha256sums_x86_64=('${ x64Sha } ')` ,
96100 "" ,
97101 "package() {" ,
@@ -216,14 +220,14 @@ if (!Script.preview) {
216220 "" ,
217221 " on_linux do" ,
218222 " if Hardware::CPU.intel? and Hardware::CPU.is_64_bit?" ,
219- ` url "https://github.com/sst/opencode/releases/download/v${ Script . version } /opencode-linux-x64.zip "` ,
223+ ` url "https://github.com/sst/opencode/releases/download/v${ Script . version } /opencode-linux-x64.tar.gz "` ,
220224 ` sha256 "${ x64Sha } "` ,
221225 " def install" ,
222226 ' bin.install "opencode"' ,
223227 " end" ,
224228 " end" ,
225229 " if Hardware::CPU.arm? and Hardware::CPU.is_64_bit?" ,
226- ` url "https://github.com/sst/opencode/releases/download/v${ Script . version } /opencode-linux-arm64.zip "` ,
230+ ` url "https://github.com/sst/opencode/releases/download/v${ Script . version } /opencode-linux-arm64.tar.gz "` ,
227231 ` sha256 "${ arm64Sha } "` ,
228232 " def install" ,
229233 ' bin.install "opencode"' ,
0 commit comments