Skip to content

Instantly share code, notes, and snippets.

@pretzelhands
Created June 30, 2020 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pretzelhands/8e57a3ffd57ec9cc023df8339f7eefd1 to your computer and use it in GitHub Desktop.
Save pretzelhands/8e57a3ffd57ec9cc023df8339f7eefd1 to your computer and use it in GitHub Desktop.
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;
console.log(" • Starting notarization of", appName);
return await notarize({
appBundleId: 'com.pretzelhands.notebag',
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLE_ID,
appleIdPassword: process.env.APPLE_ID_PASSWORD,
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment