Created
June 30, 2020 11:33
-
-
Save pretzelhands/8e57a3ffd57ec9cc023df8339f7eefd1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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