Skip to content

Commit 658f05e

Browse files
committed
bump version to 1.13.2 in package.json; add dynamic brand suffix to binary name in config
1 parent f35409d commit 658f05e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@zen-browser/surfer",
3-
"version": "1.13.1",
3+
"version": "1.13.2",
44
"description": "Simplifying building firefox forks!",
55
"main": "index.js",
66
"bin": {

src/utils/config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { join } from 'node:path'
1010
import { BIN_NAME } from '../constants'
1111

1212
import { log } from '../log'
13+
import { dynamicConfig } from '.'
1314

1415
export const projectDirectory = process.cwd()
1516
export const configPath = join(projectDirectory, 'surfer.json')
@@ -223,10 +224,14 @@ export function getConfig(): Config {
223224
}
224225

225226
// Provide some useful warnings to the user to help improve their config files
227+
let currentBrand = dynamicConfig.get('brand') as string;
226228
if (!fileParsed.binaryName) {
227229
log.warning(
228230
'It is recommended that you provide a `binaryName` field in your config file, otherwise packaging may get messed up'
229231
)
232+
} else if (currentBrand && currentBrand !== 'release') {
233+
// Add a `-{brand}` suffix to the binary name, we should lowercase it too
234+
fileParsed.binaryName += `-${currentBrand.toLowerCase()}`
230235
}
231236

232237
// Merge the default config with the file parsed config

0 commit comments

Comments
 (0)