Set publisher in install registry to brandingVendor

This commit is contained in:
UnownPlain 2025-03-20 15:49:35 -04:00
parent fd234005ec
commit 6397f032d3
No known key found for this signature in database
GPG key ID: FE85C3B23B78F4F7
2 changed files with 19 additions and 2 deletions

View file

@ -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) {

View file

@ -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
} }