Update branding-patch.ts

This commit is contained in:
omove 2024-11-16 14:30:09 -05:00 committed by GitHub
parent a13f794bb3
commit 0da0c72ea3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -422,8 +422,37 @@ pref("devtools.selfxss.count", 5);
}
function setUpdateURLs() {
const sufix =
compatMode && (process as any).surferPlatform !== 'macos' ? '-generic' : ''
let suffix;
if ((process as any).surferPlatform == 'win32') {
if (compatMode == 'x86_64') {
suffix = '-generic';
}
else if (compatMode == 'x86_64-v3') {
suffix = '';
}
else if (compatMode == 'aarch64') {
suffix = '-aarch64';
}
}
if ((process as any).surferPlatform == 'linux') {
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%${sufix}/update.xml`
const appIni = join(ENGINE_DIR, 'build', 'application.ini.in')
const appIniContents = readFileSync(appIni).toString()