mirror of
https://github.com/VSCodium/update-api.git
synced 2026-05-01 12:56:33 -05:00
fix: correctly deduce target from missing data (#16)
This commit is contained in:
@@ -65,14 +65,17 @@ function validateInput (platform, quality) {
|
||||
if (!OS.has(os)) return false
|
||||
|
||||
if (os === WINDOWS) {
|
||||
if (arch === X64 && !type) type = SYSTEM
|
||||
|
||||
if (!arch && !type) arch = SYSTEM
|
||||
|
||||
if (!type) {
|
||||
type = arch
|
||||
arch = IA32
|
||||
}
|
||||
if (!arch) {
|
||||
type = SYSTEM
|
||||
arch = IA32
|
||||
} else if (TYPES.has(arch)) {
|
||||
type = arch
|
||||
arch = IA32
|
||||
} else {
|
||||
type = SYSTEM
|
||||
}
|
||||
}
|
||||
|
||||
if (!TYPES.has(type)) return false
|
||||
} else if (os === DARWIN) {
|
||||
|
||||
Reference in New Issue
Block a user