File tree 1 file changed +2
-26
lines changed
1 file changed +2
-26
lines changed Original file line number Diff line number Diff line change 1
- const { notarize } = require ( 'electron-notarize' ) ;
2
- const { build } = require ( '../../package.json' ) ;
3
-
4
1
exports . default = async function notarizeMacos ( context ) {
5
- const { electronPlatformName, appOutDir } = context ;
6
- if ( electronPlatformName !== 'darwin' ) {
7
- return ;
8
- }
9
-
10
- if ( ! process . env . CI ) {
11
- console . warn ( 'Skipping notarizing step. Packaging is not running in CI' ) ;
12
- return ;
13
- }
14
-
15
- if ( ! ( 'APPLE_ID' in process . env && 'APPLE_ID_PASS' in process . env ) ) {
16
- console . warn ( 'Skipping notarizing step. APPLE_ID and APPLE_ID_PASS env variables must be set' ) ;
17
- return ;
18
- }
19
-
20
- const appName = context . packager . appInfo . productFilename ;
21
-
22
- await notarize ( {
23
- appBundleId : build . appId ,
24
- appPath : `${ appOutDir } /${ appName } .app` ,
25
- appleId : process . env . APPLE_ID ,
26
- appleIdPassword : process . env . APPLE_ID_PASS ,
27
- } ) ;
2
+ console . warn ( 'Skipping notarizing step' ) ;
3
+ return ;
28
4
} ;
You can’t perform that action at this time.
0 commit comments