File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,21 @@ export async function getLatestBabashka(githubAuth?: string): Promise<string> {
2727
2828export function getArtifactName ( version : string ) : string {
2929 const platform = os . platform ( )
30+ let arch
31+ switch ( os . arch ( ) ) {
32+ case 'x64' :
33+ arch = 'amd64'
34+ case 'arm64' :
35+ arch = 'aarch64'
36+ }
37+
3038 switch ( platform ) {
3139 case 'win32' :
32- return `babashka-${ version } -windows-amd64 .zip`
40+ return `babashka-${ version } -windows-${ arch } .zip`
3341 case 'darwin' :
34- return `babashka-${ version } -macos-amd64 .tar.gz`
42+ return `babashka-${ version } -macos-${ arch } .tar.gz`
3543 default :
36- return `babashka-${ version } -linux-amd64 -static.tar.gz`
44+ return `babashka-${ version } -linux-${ arch } -static.tar.gz`
3745 }
3846}
3947
You can’t perform that action at this time.
0 commit comments