@@ -20,6 +20,7 @@ const Config = function () {
20
20
this . buildConfig = this . defaultBuildConfig
21
21
this . projectNames = [ ]
22
22
this . projects = { }
23
+ this . signTarget = 'sign_app'
23
24
this . buildTarget = 'brave'
24
25
this . rootDir = path . join ( path . dirname ( __filename ) , '..' )
25
26
this . scriptDir = path . join ( this . rootDir , 'scripts' )
@@ -45,6 +46,7 @@ const Config = function () {
45
46
this . mac_signing_identifier = getNPMConfig ( [ 'mac_signing_identifier' ] ) || ''
46
47
this . mac_installer_signing_identifier = getNPMConfig ( [ 'mac_installer_signing_identifier' ] ) || ''
47
48
this . mac_signing_keychain = getNPMConfig ( [ 'mac_signing_keychain' ] ) || 'login'
49
+ this . mac_signing_output_prefix = 'signing'
48
50
this . channel = ''
49
51
this . sccache = getNPMConfig ( [ 'sccache' ] )
50
52
this . braveReferralsApiKey = getNPMConfig ( [ 'brave_referrals_api_key' ] ) || ''
@@ -93,6 +95,7 @@ Config.prototype.buildArgs = function () {
93
95
args . mac_signing_identifier = this . mac_signing_identifier
94
96
args . mac_installer_signing_identifier = this . mac_installer_signing_identifier
95
97
args . mac_signing_keychain = this . mac_signing_keychain
98
+ args . mac_signing_output_prefix = this . mac_signing_output_prefix
96
99
}
97
100
98
101
if ( process . platform === 'win32' && this . build_omaha ) {
@@ -132,6 +135,12 @@ Config.prototype.buildArgs = function () {
132
135
return args
133
136
}
134
137
138
+ Config . prototype . shouldSign = function ( ) {
139
+ // it doesn't make sense to sign debug builds because the restrictions on loading
140
+ // dynamic libs prevents them from working anyway
141
+ return this . mac_signing_identifier !== '' && this . buildConfig === 'Release'
142
+ }
143
+
135
144
Config . prototype . prependPath = function ( oldPath , addPath ) {
136
145
let newPath = oldPath . split ( path . delimiter )
137
146
newPath . unshift ( addPath )
@@ -310,17 +319,6 @@ Config.prototype.update = function (options) {
310
319
} )
311
320
}
312
321
313
- if ( process . platform === 'darwin' ) {
314
- Config . prototype . macAppName = function ( ) {
315
- let app_name = 'Brave\\ Browser'
316
- if ( this . channel ) {
317
- // Capitalize channel name and append it to make app name like Brave Browser Beta
318
- app_name = app_name + '\\ ' + this . channel . charAt ( 0 ) . toUpperCase ( ) + this . channel . slice ( 1 )
319
- }
320
- return app_name
321
- }
322
- }
323
-
324
322
Object . defineProperty ( Config . prototype , 'defaultOptions' , {
325
323
get : function ( ) {
326
324
let env = Object . assign ( { } , process . env )
0 commit comments