fix: reject unsupported Windows ARM64 installs
This commit is contained in:
@@ -33,8 +33,8 @@
|
|||||||
"strict": true
|
"strict": true
|
||||||
},
|
},
|
||||||
"imports": {
|
"imports": {
|
||||||
"@std/cli": "jsr:@std/cli@^1.0.0",
|
"@std/cli": "jsr:@std/cli@^1.0.29",
|
||||||
"@std/fmt": "jsr:@std/fmt@^1.0.0",
|
"@std/fmt": "jsr:@std/fmt@^1.0.10",
|
||||||
"@std/path": "jsr:@std/path@^1.0.0"
|
"@std/path": "jsr:@std/path@^1.1.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+217
-632
File diff suppressed because it is too large
Load Diff
@@ -42,6 +42,10 @@ function getBinaryInfo() {
|
|||||||
const mappedPlatform = platformMap[plat];
|
const mappedPlatform = platformMap[plat];
|
||||||
const mappedArch = archMap[architecture];
|
const mappedArch = archMap[architecture];
|
||||||
|
|
||||||
|
if (plat === 'win32' && architecture === 'arm64') {
|
||||||
|
return { supported: false, platform: plat, arch: architecture };
|
||||||
|
}
|
||||||
|
|
||||||
if (!mappedPlatform || !mappedArch) {
|
if (!mappedPlatform || !mappedArch) {
|
||||||
return { supported: false, platform: plat, arch: architecture };
|
return { supported: false, platform: plat, arch: architecture };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user