1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-12-02 19:17:25 +01:00
upscayl/scripts/notarize.js

19 lines
511 B
JavaScript
Raw Normal View History

2023-09-02 21:23:23 +02:00
require("dotenv").config();
2023-09-03 10:14:13 +02:00
const { notarize } = require("@electron/notarize");
2023-09-02 21:23:23 +02:00
exports.default = async function notarizing(context) {
const { electronPlatformName, appOutDir } = context;
if (electronPlatformName !== "darwin") {
return;
}
const appName = context.packager.appInfo.productFilename;
return await notarize({
appBundleId: "org.upscayl.Upscayl",
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLEID,
appleIdPassword: process.env.APPLEIDPASS,
});
};