fix: reject unsupported Windows ARM64 installs

This commit is contained in:
2026-05-08 16:24:45 +00:00
parent f0f7c06e5c
commit 45b7b44b5c
3 changed files with 224 additions and 635 deletions
+3 -3
View File
@@ -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"
} }
} }
+217 -632
View File
File diff suppressed because it is too large Load Diff
+4
View File
@@ -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 };
} }