From 01b6eb25462c5c8667dca90306bec51efd0f341a Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sat, 7 Mar 2020 16:57:35 -0500 Subject: #906 signing process for OSX --- electron_js/notarize.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 electron_js/notarize.js (limited to 'electron_js') diff --git a/electron_js/notarize.js b/electron_js/notarize.js new file mode 100644 index 00000000..b173095a --- /dev/null +++ b/electron_js/notarize.js @@ -0,0 +1,18 @@ +require('dotenv').config(); +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.pliablepixels.zmninja-pro', + appPath: `${appOutDir}/${appName}.app`, + appleId: process.env.APPLEID, + appleIdPassword: process.env.APPLEIDPASS, + }); +}; -- cgit v1.2.3