diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2020-03-07 16:57:35 -0500 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2020-03-07 16:57:35 -0500 |
| commit | 01b6eb25462c5c8667dca90306bec51efd0f341a (patch) | |
| tree | e6528d25cb17b92166242535d10a0b8058367333 /electron_js | |
| parent | b4dc33d7c203c0b85bad526aad0b4f36d30d794c (diff) | |
#906 signing process for OSX
Diffstat (limited to 'electron_js')
| -rw-r--r-- | electron_js/notarize.js | 18 |
1 files changed, 18 insertions, 0 deletions
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, + }); +}; |
