From e09761badc74083f010a9c39be442101d64b510f Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Thu, 31 Oct 2024 14:29:41 -0500 Subject: [PATCH] Fix win32 arm translation check Co-authored-by: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com> --- 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 ad2fd18889..4487bf0bf1 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; }