Merge pull request #21 from UnownPlain/arp-entry-fix

Set publisher in install registry to `brandingVendor`
This commit is contained in:
mr. m 2025-03-30 11:14:10 +02:00 committed by GitHub
commit 098950b3d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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')
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) {

View file

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