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