fix: s390x architecture is not handled (#57)

The project releases s390x binaries (64bit), but not s390 (31bit). Node
reports a s390x runner correctly as "s390x", so instllations will fail
on this platform.

https://nodejs.org/api/os.html#osarch

Hence the s390 arch case has been changed to the s390x.

Signed-off-by: Magnus Kulke <magnuskulke@microsoft.com>
This commit is contained in:
Magnus Kulke 2024-10-21 07:54:33 +02:00 committed by GitHub
parent c730dd06ba
commit 2a4cd09fbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -6752,7 +6752,7 @@ function mapArch() {
return 'ppc64le'; return 'ppc64le';
case 'riscv64': case 'riscv64':
return 'riscv64'; return 'riscv64';
case 's390': case 's390x':
return 's390x'; return 's390x';
case 'arm': case 'arm':
return 'armv7'; return 'armv7';

View File

@ -92,7 +92,7 @@ export function mapArch(): string {
return 'ppc64le'; return 'ppc64le';
case 'riscv64': case 'riscv64':
return 'riscv64'; return 'riscv64';
case 's390': case 's390x':
return 's390x'; return 's390x';
case 'arm': case 'arm':
return 'armv7'; return 'armv7';