From c1ca909c7c360070156803b24e731be48af663d8 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Thu, 27 May 2021 16:03:18 +0100 Subject: [PATCH] Limit macOS updates to x86_64 temporarily As a temporary measure, this limits the updater on macOS to only supporting the `x86_64` / `x64` architecture. This ensures `aarch64` users are not inadvertently kicked back to `x86_64`. --- src/updater.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/updater.js b/src/updater.js index 8f9d0f4..51691cb 100644 --- a/src/updater.js +++ b/src/updater.js @@ -30,7 +30,7 @@ module.exports.start = function startAutoUpdate(updateBaseUrl) { // hits a URL that either gives it a 200 with some json or // 204 No Content. On windows it takes a base path and looks for // files under that path. - if (process.platform === 'darwin') { + if (process.platform === 'darwin' && process.arch === 'x64') { // include the current version in the URL we hit. Electron doesn't add // it anywhere (apart from the User-Agent) so it's up to us. We could // (and previously did) just use the User-Agent, but this doesn't