bump version to 1.6.1 and refactor platform compatibility handling in update logic

This commit is contained in:
mr. M 2024-11-24 10:17:19 +01:00
parent 4e9b9d3880
commit c49501d8fe
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
3 changed files with 13 additions and 47 deletions

View file

@ -427,31 +427,16 @@ function setUpdateURLs() {
if (compatMode == 'x86_64') {
suffix = '-generic';
}
else if (compatMode == 'x86_64-v3') {
suffix = '';
}
else if (compatMode == 'aarch64') {
suffix = '-aarch64';
}
}
if ((process as any).surferPlatform == 'darwin') {
if (compatMode == 'x86_64') {
suffix = '-generic';
}
else if (compatMode == 'aarch64') {
suffix = '';
}
}
if ((process as any).surferPlatform == 'linux') {
if (compatMode == 'x86_64') {
suffix = '-generic';
}
else if (compatMode == 'x86_64-v3') {
suffix = '';
}
else if (compatMode == 'aarch64') {
suffix = '-aarch64';
}
}
const baseURL = `URL=https://@MOZ_APPUPDATE_HOST@/updates/browser/%BUILD_TARGET%/%CHANNEL%${suffix}/update.xml`
const appIni = join(ENGINE_DIR, 'build', 'application.ini.in')