2021-11-23 07:26:46 +00:00
|
|
|
const { notarize } = require('electron-notarize');
|
2019-12-24 10:14:28 +00:00
|
|
|
|
2021-11-23 07:26:46 +00:00
|
|
|
exports.default = async (context) => {
|
2019-12-24 10:14:28 +00:00
|
|
|
const { electronPlatformName, appOutDir } = context;
|
|
|
|
if (electronPlatformName !== 'darwin') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
const appName = context.packager.appInfo.productFilename;
|
|
|
|
|
|
|
|
return await notarize({
|
2020-01-02 17:36:00 +00:00
|
|
|
appBundleId: 'io.frappe.books',
|
2019-12-24 10:14:28 +00:00
|
|
|
appPath: `${appOutDir}/${appName}.app`,
|
|
|
|
appleId: process.env.APPLE_ID,
|
2021-11-23 07:26:46 +00:00
|
|
|
appleIdPassword: process.env.APPLE_APP_PASSWORD,
|
2019-12-24 10:14:28 +00:00
|
|
|
});
|
|
|
|
};
|