From b3f268d2a53c8956d0c39ef98cb5bf07b6c84d70 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Sat, 25 May 2024 18:35:04 -0500 Subject: [PATCH] notarize script is not needed anymore --- notarize.js | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 notarize.js diff --git a/notarize.js b/notarize.js deleted file mode 100644 index 6d8136a..0000000 --- a/notarize.js +++ /dev/null @@ -1,44 +0,0 @@ -const notarize = require('@electron/notarize'); -const fs = require('fs'); -const path = require('path'); - -module.exports = async function (params) { - if (process.platform !== 'darwin') { - console.log('Only need to notarize MacOS, skipping'); - return; - } - - const appId = 'com.stagehacks.cueview'; - - const appPath = path.join( - params.appOutDir, - `${params.packager.appInfo.productFilename}.app` - ); - - if (!fs.existsSync(appPath)) { - console.error('App file not found skipping notarization.'); - return; - } - - if ( - process.env.APPLE_ID === undefined || - process.env.APPLE_ID_PASSWORD === undefined - ) { - console.log('Apple ID and Password must be set in order to notarize.'); - return; - } - - try { - console.log(`Notarizing ${appId} found at ${appPath}`); - await notarize.notarize({ - appBundleId: appId, - appPath, - appleId: process.env.APPLE_ID, - appleIdPassword: process.env.APPLE_ID_PASSWORD, - }); - console.log(`Done notarizing ${appId}`); - } catch (error) { - console.log('There was an error notarizing.'); - console.error(error); - } -};