From 96bf053ac6cb90a8bfb87fd89ffe866e9cbf015f Mon Sep 17 00:00:00 2001 From: Amine Mouafik Date: Thu, 19 Sep 2019 12:59:48 +0700 Subject: Notarize mac deliverable on electron-builder afterSign hook --- build-helpers/notarize.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 build-helpers/notarize.js (limited to 'build-helpers/notarize.js') diff --git a/build-helpers/notarize.js b/build-helpers/notarize.js new file mode 100644 index 000000000..1504c7cec --- /dev/null +++ b/build-helpers/notarize.js @@ -0,0 +1,17 @@ +const { notarize } = require('electron-notarize'); + +exports.default = async function notarizing(context) { + const { electronPlatformName, appOutDir } = context; + if (electronPlatformName !== 'darwin') { + return; + } + + const appName = context.packager.appInfo.productFilename; + + return await notarize({ + appBundleId: 'com.kytwb.ferdi', + appPath: `${appOutDir}/${appName}.app`, + appleId: process.env.APPLEID, + appleIdPassword: process.env.APPLEID_PASSWORD, + }); +}; -- cgit v1.2.3-54-g00ecf