2021-12-29 12:11:26 +01:00
|
|
|
require('dotenv').config();
|
2022-11-15 14:37:52 +01:00
|
|
|
const { notarize } = require('@electron/notarize');
|
2021-12-29 12:11:26 +01:00
|
|
|
|
|
|
|
exports.default = async function notarizing(context) {
|
|
|
|
const { electronPlatformName, appOutDir } = context;
|
|
|
|
if (electronPlatformName !== 'darwin') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
const appName = context.packager.appInfo.productFilename;
|
|
|
|
|
|
|
|
return await notarize({
|
2021-12-30 17:37:00 +01:00
|
|
|
appBundleId: 'org.qortal.QortalUI',
|
2021-12-29 12:11:26 +01:00
|
|
|
appPath: `${appOutDir}/${appName}.app`,
|
2023-06-17 13:52:54 +02:00
|
|
|
tool: "notarytool".
|
|
|
|
teamId: process.env.APPLETEAMID,
|
2021-12-29 12:11:26 +01:00
|
|
|
appleId: process.env.APPLEID,
|
|
|
|
appleIdPassword: process.env.APPLEIDPASS,
|
|
|
|
});
|
|
|
|
};
|