mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-07 08:55:33 +02:00
Merge pull request #21 from UnownPlain/arp-entry-fix
Set publisher in install registry to `brandingVendor`
This commit is contained in:
commit
098950b3d4
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) {
|
||||
|
|
|
@ -57,8 +57,8 @@ export const copyManual = async (
|
|||
)
|
||||
}
|
||||
} catch (e) {
|
||||
console.info("name: ", name)
|
||||
console.info("patchName: ", patchName)
|
||||
console.info('name: ', name)
|
||||
console.info('patchName: ', patchName)
|
||||
console.error(e) // Just in case we have an error
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue