const { notarize } = require ( 'electron-notarize' ) ; exports . default = async function ( context ) { const { electronPlatformName , appOutDir } = context ; if ( electronPlatformName !== 'darwin' || ! process . env . CSC_LINK ) { return ; } const appName = context . packager . appInfo . productFilename ; console . log ( `Notarizing ${ appName }. This may take a few minutes.` ) ; await notarize ( { appBundleId : 'com.electron.outline-manager' , appPath : `${ appOutDir }/${ appName }.app` , appleId : process . env . APPLE_ID , appleIdPassword : process . env . APPLE_PASSWORD , } ) ; } ;