File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { join } from 'node:path'
1010import { BIN_NAME } from '../constants'
1111
1212import { log } from '../log'
13+ import { dynamicConfig } from '.'
1314
1415export const projectDirectory = process . cwd ( )
1516export 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
You can’t perform that action at this time.
0 commit comments