Skip to content

Commit 54cde67

Browse files
fix: install the x64 cli on windows-on-arm hosts (#1858)
1 parent 107361e commit 54cde67

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/install.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ function getDownloadUrl(platform, arch) {
8484
case 'darwin':
8585
return `${releasesUrl}-Darwin-universal`;
8686
case 'win32':
87+
// Windows arm machines can run x64 binaries
88+
if (arch === 'arm64') {
89+
archString = 'x86_64';
90+
}
8791
return `${releasesUrl}-Windows-${archString}.exe`;
8892
case 'linux':
8993
case 'freebsd':

0 commit comments

Comments
 (0)