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`.
This commit is contained in:
J. Ryan Stinnett 2021-05-27 16:03:18 +01:00
parent 7b6ead738e
commit c1ca909c7c

View file

@ -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