Merge pull request #248 from vector-im/dbkr/mac_universal_update_path

Revert to generic update path for universal builds & switch to new domain
This commit is contained in:
David Baker 2021-08-09 15:17:01 +01:00 committed by GitHub
commit 609677d9c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{ {
"update_base_url": "https://packages.riot.im/nightly/update/", "update_base_url": "https://packages.element.io/nightly/update/",
"default_server_name": "matrix.org", "default_server_name": "matrix.org",
"brand": "Element Nightly", "brand": "Element Nightly",
"integrations_ui_url": "https://scalar.vector.im/", "integrations_ui_url": "https://scalar.vector.im/",

View File

@ -52,7 +52,7 @@ export function start(updateBaseUrl: string): void {
// rely on NSURLConnection setting the User-Agent to what we expect, // rely on NSURLConnection setting the User-Agent to what we expect,
// and also acts as a convenient cache-buster to ensure that when the // and also acts as a convenient cache-buster to ensure that when the
// app updates it always gets a fresh value to avoid update-looping. // app updates it always gets a fresh value to avoid update-looping.
url = `${updateBaseUrl}macos/${process.arch}/?localVersion=${encodeURIComponent(app.getVersion())}`; url = `${updateBaseUrl}macos/?localVersion=${encodeURIComponent(app.getVersion())}`;
} else if (process.platform === 'win32') { } else if (process.platform === 'win32') {
url = `${updateBaseUrl}win32/${process.arch}/`; url = `${updateBaseUrl}win32/${process.arch}/`;
} else { } else {