Skip to content

Commit 82c120d

Browse files
committed
Fix isProcess64Bit logic to support arm64 (e.g. Apple M1)
It's still 64-bit just not `x64`.
1 parent 4a9d605 commit 82c120d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function getPlatformDetails(): IPlatformDetails {
4949
operatingSystem = OperatingSystem.Linux;
5050
}
5151

52-
const isProcess64Bit = process.arch === "x64";
52+
const isProcess64Bit = (process.arch === "x64" || process.arch === "arm64");
5353

5454
return {
5555
operatingSystem,

0 commit comments

Comments
 (0)