mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-19 07:54:59 +01:00
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:
parent
7b6ead738e
commit
c1ca909c7c
@ -30,7 +30,7 @@ module.exports.start = function startAutoUpdate(updateBaseUrl) {
|
|||||||
// hits a URL that either gives it a 200 with some json or
|
// 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
|
// 204 No Content. On windows it takes a base path and looks for
|
||||||
// files under that path.
|
// 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
|
// 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
|
// 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
|
// (and previously did) just use the User-Agent, but this doesn't
|
||||||
|
Loading…
Reference in New Issue
Block a user