diff --git a/package.json b/package.json index 8cef068..1f8c273 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@zen-browser/surfer", - "version": "1.10.5", + "version": "1.10.6", "description": "Simplifying building firefox forks!", "main": "index.js", "bin": { diff --git a/src/commands/package.ts b/src/commands/package.ts index dc83f05..f452840 100644 --- a/src/commands/package.ts +++ b/src/commands/package.ts @@ -155,7 +155,7 @@ export const surferPackage = async () => { log.success('Packaging complected!') } -function getCurrentBrandName(): string { +export function getCurrentBrandName(): string { const brand = dynamicConfig.get('brand') as string if (brand == 'unofficial') { diff --git a/src/constants/mozconfig.ts b/src/constants/mozconfig.ts index 7aee049..aeb07dd 100644 --- a/src/constants/mozconfig.ts +++ b/src/constants/mozconfig.ts @@ -1,4 +1,5 @@ import { config } from '..' +import { getCurrentBrandName } from '../commands/package' import { getFFVersionOrCandidate } from '../utils' const otherBuildModes = `# You can change to other build modes by running: @@ -53,5 +54,9 @@ export ZEN_FIREFOX_VERSION=${getFFVersionOrCandidate()} export MOZ_APPUPDATE_HOST=${ config.updateHostname || 'localhost:7648 # This should not resolve' } -` +` + process.platform === 'macos' ? ` + +# MacOS specific settings +export MOZ_MACBUNDLE_NAME=${getCurrentBrandName()} + ` : ''; }