Fix win32 arm translation check

This commit is contained in:
ayumi-signal 2024-10-31 09:48:25 -07:00 committed by GitHub
parent 92d22d0827
commit ab3c18513a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -808,7 +808,11 @@ export abstract class Updater {
}
private async getArch(): Promise<typeof process.arch> {
if (process.platform !== 'darwin' || process.arch === 'arm64') {
if (process.arch === 'arm64') {
return process.arch;
}
if (process.platform !== 'darwin' && process.platform !== 'win32') {
return process.arch;
}