bump version to 1.10.6 and export getCurrentBrandName function for MacOS settings

This commit is contained in:
mr. M 2025-03-30 10:02:57 +02:00
parent fd234005ec
commit ede53fca1e
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
3 changed files with 8 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "@zen-browser/surfer", "name": "@zen-browser/surfer",
"version": "1.10.5", "version": "1.10.6",
"description": "Simplifying building firefox forks!", "description": "Simplifying building firefox forks!",
"main": "index.js", "main": "index.js",
"bin": { "bin": {

View file

@ -155,7 +155,7 @@ export const surferPackage = async () => {
log.success('Packaging complected!') log.success('Packaging complected!')
} }
function getCurrentBrandName(): string { export function getCurrentBrandName(): string {
const brand = dynamicConfig.get('brand') as string const brand = dynamicConfig.get('brand') as string
if (brand == 'unofficial') { if (brand == 'unofficial') {

View file

@ -1,4 +1,5 @@
import { config } from '..' import { config } from '..'
import { getCurrentBrandName } from '../commands/package'
import { getFFVersionOrCandidate } from '../utils' import { getFFVersionOrCandidate } from '../utils'
const otherBuildModes = `# You can change to other build modes by running: const otherBuildModes = `# You can change to other build modes by running:
@ -53,5 +54,9 @@ export ZEN_FIREFOX_VERSION=${getFFVersionOrCandidate()}
export MOZ_APPUPDATE_HOST=${ export MOZ_APPUPDATE_HOST=${
config.updateHostname || 'localhost:7648 # This should not resolve' config.updateHostname || 'localhost:7648 # This should not resolve'
} }
` ` + process.platform === 'macos' ? `
# MacOS specific settings
export MOZ_MACBUNDLE_NAME=${getCurrentBrandName()}
` : '';
} }