mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-07 17:05:33 +02:00
chore: Update package.json version to 1.2.1 and optimize platform flags
This commit is contained in:
parent
e82464891f
commit
71fa9b96b5
5 changed files with 34 additions and 17 deletions
|
@ -18,7 +18,7 @@ import sharp from 'sharp'
|
|||
import pngToIco from 'png-to-ico'
|
||||
import asyncIcns from 'async-icns'
|
||||
|
||||
import { config } from '../..'
|
||||
import { compatMode, config } from '../..'
|
||||
import { CONFIGS_DIR, ENGINE_DIR, MELON_TMP_DIR } from '../../constants'
|
||||
import { log } from '../../log'
|
||||
import {
|
||||
|
@ -260,6 +260,8 @@ export async function apply(name: string): Promise<void> {
|
|||
await setupImages(configPath, outputPath)
|
||||
await setupLocale(outputPath, brandingConfig)
|
||||
await copyMozFiles(outputPath, brandingConfig)
|
||||
|
||||
setUpdateURLs();
|
||||
}
|
||||
|
||||
function configureBrandingNsis(brandingNsis: string, brandingConfig: {
|
||||
|
@ -349,3 +351,11 @@ function configureBrandingNsis(brandingNsis: string, brandingConfig: {
|
|||
!define PROGRESS_BAR_BACKGROUND_COLOR 0xFFAA00
|
||||
`);
|
||||
}
|
||||
|
||||
function setUpdateURLs() {
|
||||
const baseURL = `URL=https://@MOZ_APPUPDATE_HOST@/updates/browser/%BUILD_TARGET%/%CHANNEL%/update.xml`;
|
||||
const appIni = join(ENGINE_DIR, 'build', 'application.ini.in');
|
||||
const appIniContents = readFileSync(appIni).toString();
|
||||
const updatedAppIni = appIniContents.replace(/URL=.*update.xml/g, baseURL);
|
||||
writeFileSync(appIni, updatedAppIni);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue