Skip to content

Commit eeeecee

Browse files
committed
Support Windows 11 ARM (by using the x86 binaries there)
1 parent 1461496 commit eeeecee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/bin_path.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ var path = require("path");
88
* For compatibility reasons, if the architecture is x64, omit it from the bin directory name.
99
* So we'll have "darwin", "linux" and "win32" for x64 arch,
1010
* but "darwinarm64" and "linuxarm64" for arm64 arch.
11+
* Also, we do not have Windows ARM binaries yet. But the x64 binaries do work on Windows 11 ARM.
12+
* So omit the architecture for Windows, too.
1113
*/
1214
var binDirName =
13-
process.arch === "x64" ? process.platform : process.platform + process.arch;
15+
process.arch === "x64" || process.platform === "win32"
16+
? process.platform
17+
: process.platform + process.arch;
1418

1519
/**
1620
*

0 commit comments

Comments
 (0)