Skip to content

Commit ab4644e

Browse files
committed
fix architecture check
1 parent eb452bd commit ab4644e

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/context.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,15 @@ export function getPlatform(): string {
2828
}
2929

3030
export function getArch(): string {
31-
const arch = os.arch()
31+
let arch = os.arch()
32+
if (arch === "x64") {
33+
arch = "amd64"
34+
}
35+
3236
if (!supportedArchs.includes(arch)) {
3337
throw new Error(`Unsupported architecture: ${arch}`)
3438
}
3539

36-
if (arch === "x64") {
37-
return "amd64"
38-
}
3940

4041
return arch
4142
}

0 commit comments

Comments
 (0)