mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-08 17:30:02 +02:00
Update branding-patch.ts
This commit is contained in:
parent
a13f794bb3
commit
0da0c72ea3
1 changed files with 31 additions and 2 deletions
|
@ -422,8 +422,37 @@ pref("devtools.selfxss.count", 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
function setUpdateURLs() {
|
function setUpdateURLs() {
|
||||||
const sufix =
|
let suffix;
|
||||||
compatMode && (process as any).surferPlatform !== 'macos' ? '-generic' : ''
|
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 baseURL = `URL=https://@MOZ_APPUPDATE_HOST@/updates/browser/%BUILD_TARGET%/%CHANNEL%${sufix}/update.xml`
|
||||||
const appIni = join(ENGINE_DIR, 'build', 'application.ini.in')
|
const appIni = join(ENGINE_DIR, 'build', 'application.ini.in')
|
||||||
const appIniContents = readFileSync(appIni).toString()
|
const appIniContents = readFileSync(appIni).toString()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue