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

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;
}