mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-07 17:05:33 +02:00
Set publisher in install registry to brandingVendor
This commit is contained in:
parent
fd234005ec
commit
6397f032d3
2 changed files with 19 additions and 2 deletions
|
@ -40,6 +40,14 @@ import { IMelonPatch } from './command'
|
||||||
export const BRANDING_DIR = join(CONFIGS_DIR, 'branding')
|
export const BRANDING_DIR = join(CONFIGS_DIR, 'branding')
|
||||||
const BRANDING_STORE = join(ENGINE_DIR, 'browser', 'branding')
|
const BRANDING_STORE = join(ENGINE_DIR, 'browser', 'branding')
|
||||||
const BRANDING_FF = join(BRANDING_STORE, 'unofficial')
|
const BRANDING_FF = join(BRANDING_STORE, 'unofficial')
|
||||||
|
const SHARED_NSH = join(
|
||||||
|
ENGINE_DIR,
|
||||||
|
'browser',
|
||||||
|
'installer',
|
||||||
|
'windows',
|
||||||
|
'nsis',
|
||||||
|
'shared.nsh'
|
||||||
|
)
|
||||||
|
|
||||||
const REQUIRED_FILES = [
|
const REQUIRED_FILES = [
|
||||||
'logo.png',
|
'logo.png',
|
||||||
|
@ -357,6 +365,15 @@ function configureBrandingNsis(
|
||||||
!define PROGRESS_BAR_BACKGROUND_COLOR 0xFFAA00
|
!define PROGRESS_BAR_BACKGROUND_COLOR 0xFFAA00
|
||||||
`
|
`
|
||||||
)
|
)
|
||||||
|
writeFileSync(
|
||||||
|
SHARED_NSH,
|
||||||
|
readFileSync(SHARED_NSH)
|
||||||
|
.toString()
|
||||||
|
.replace(
|
||||||
|
'"Publisher" "Mozilla"',
|
||||||
|
`"Publisher" "${brandingConfig.brandingVendor}"`
|
||||||
|
)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
function addOptionalIcons(brandingPath: string, outputPath: string) {
|
function addOptionalIcons(brandingPath: string, outputPath: string) {
|
||||||
|
|
|
@ -57,8 +57,8 @@ export const copyManual = async (
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.info("name: ", name)
|
console.info('name: ', name)
|
||||||
console.info("patchName: ", patchName)
|
console.info('patchName: ', patchName)
|
||||||
console.error(e) // Just in case we have an error
|
console.error(e) // Just in case we have an error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue