4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-12 02:05:51 +00:00
qortal-ui/scripts/notarize.js

21 lines
574 B
JavaScript
Raw Normal View History

2021-12-29 12:11:26 +01:00
require('dotenv').config();
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-18 12:28:35 +02:00
tool: "notarytool",
teamId: process.env.APPLETEAMID,
2021-12-29 12:11:26 +01:00
appleId: process.env.APPLEID,
appleIdPassword: process.env.APPLEIDPASS,
});
};