From 0da0c72ea3dede25635a8ea44795e23de1f1e73c Mon Sep 17 00:00:00 2001 From: omove <61330514+omove@users.noreply.github.com> Date: Sat, 16 Nov 2024 14:30:09 -0500 Subject: [PATCH] Update branding-patch.ts --- src/commands/patches/branding-patch.ts | 33 ++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/src/commands/patches/branding-patch.ts b/src/commands/patches/branding-patch.ts index 2640a68..ca8c621 100644 --- a/src/commands/patches/branding-patch.ts +++ b/src/commands/patches/branding-patch.ts @@ -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()