Skip to content

Commit

Permalink
fix: s390x architecture is not handled
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mkulke committed Oct 4, 2024
1 parent 4e826cc commit c33c6d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function mapArch(): string {
return 'ppc64le';
case 'riscv64':
return 'riscv64';
case 's390':
case 's390x':
return 's390x';
case 'arm':
return 'armv7';
Expand All @@ -104,4 +104,4 @@ export function mapArch(): string {
export function getBinaryExtension(): string {
const platform = mapPlatform();
return platform === 'windows' ? '.exe' : '';
}
}

0 comments on commit c33c6d2

Please sign in to comment.