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')
|
||||
const BRANDING_STORE = join(ENGINE_DIR, 'browser', 'branding')
|
||||
const BRANDING_FF = join(BRANDING_STORE, 'unofficial')
|
||||
const SHARED_NSH = join(
|
||||
ENGINE_DIR,
|
||||
'browser',
|
||||
'installer',
|
||||
'windows',
|
||||
'nsis',
|
||||
'shared.nsh'
|
||||
)
|
||||
|
||||
const REQUIRED_FILES = [
|
||||
'logo.png',
|
||||
|
@ -357,6 +365,15 @@ function configureBrandingNsis(
|
|||
!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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue