From ab3c18513a98f03186a0497cb30fda320a23d5c1 Mon Sep 17 00:00:00 2001 From: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com> Date: Thu, 31 Oct 2024 09:48:25 -0700 Subject: [PATCH] Fix win32 arm translation check --- ts/updater/common.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ts/updater/common.ts b/ts/updater/common.ts index ad2fd1888939..4487bf0bf16f 100644 --- a/ts/updater/common.ts +++ b/ts/updater/common.ts @@ -808,7 +808,11 @@ export abstract class Updater { } private async getArch(): Promise { - if (process.platform !== 'darwin' || process.arch === 'arm64') { + if (process.arch === 'arm64') { + return process.arch; + } + + if (process.platform !== 'darwin' && process.platform !== 'win32') { return process.arch; }