From 2a4cd09fbf304d4a3a56bf5b30dde3c1c709a597 Mon Sep 17 00:00:00 2001 From: Magnus Kulke Date: Mon, 21 Oct 2024 07:54:33 +0200 Subject: [PATCH] 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 --- dist/index.js | 2 +- src/lib/release.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 82b6cd1..a8ee931 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6752,7 +6752,7 @@ function mapArch() { return 'ppc64le'; case 'riscv64': return 'riscv64'; - case 's390': + case 's390x': return 's390x'; case 'arm': return 'armv7'; 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 +}