@@ -7,27 +7,26 @@ exports.default = async function(context) {
77
88 if ( electronPlatformName === 'darwin' ) {
99 const appName = context . packager . appInfo . productFilename ;
10- // We get the password from keychain. The keychain stores
11- // user IDs too, but apparently altool can't get the user ID
12- // from the keychain, so we need to get it from the environment.
13- const userId = process . env . NOTARIZE_APPLE_ID ;
14- if ( userId === undefined ) {
10+
11+ const keychainProfile = process . env . NOTARIZE_KEYCHAIN_PROFILE ;
12+ if ( keychainProfile === undefined ) {
1513 if ( ! warned ) {
16- console . log ( "*************************************" ) ;
17- console . log ( "* NOTARIZE_APPLE_ID is not set. *" ) ;
18- console . log ( "* This build will NOT be notarised. *" ) ;
19- console . log ( "*************************************" ) ;
14+ console . log ( "***************************************** " ) ;
15+ console . log ( "* NOTARIZE_KEYCHAIN_PROFILE is not set. *" ) ;
16+ console . log ( "* This build will NOT be notarised. *" ) ;
17+ console . log ( "***************************************** " ) ;
2018 warned = true ;
2119 }
2220 return ;
2321 }
2422
2523 console . log ( "Notarising macOS app. This may be some time." ) ;
2624 return await notarize ( {
25+ tool : "notarytool" ,
2726 appBundleId : appId ,
2827 appPath : `${ appOutDir } /${ appName } .app` ,
29- appleId : userId ,
30- appleIdPassword : '@ keychain:NOTARIZE_CREDS' ,
28+ keychainProfile ,
29+ keychain : process . env . NOTARIZE_KEYCHAIN ,
3130 } ) ;
3231 }
3332} ;
0 commit comments