From c33c6d20a9fa857fbb8ed6524244d1c1e8c02b07 Mon Sep 17 00:00:00 2001 From: Magnus Kulke Date: Fri, 4 Oct 2024 12:00:49 +0200 Subject: [PATCH] fix: s390x architecture is not handled 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 --- src/lib/release.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/release.ts b/src/lib/release.ts index 3569306..ff7526c 100644 --- a/src/lib/release.ts +++ b/src/lib/release.ts @@ -92,7 +92,7 @@ export function mapArch(): string { return 'ppc64le'; case 'riscv64': return 'riscv64'; - case 's390': + case 's390x': return 's390x'; case 'arm': return 'armv7'; @@ -104,4 +104,4 @@ export function mapArch(): string { export function getBinaryExtension(): string { const platform = mapPlatform(); return platform === 'windows' ? '.exe' : ''; -} \ No newline at end of file +}