1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-01-31 20:15:25 +01:00
upscayl/scripts/notarize.js

19 lines
511 B
JavaScript
Raw Normal View History

2023-09-03 00:53:23 +05:30
require("dotenv").config();
2023-09-03 13:44:13 +05:30
const { notarize } = require("@electron/notarize");
2023-09-03 00:53:23 +05:30
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,
});
};