1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-02-03 21:15:26 +01:00
upscayl/notarize.js

20 lines
543 B
JavaScript
Raw Normal View History

2023-09-03 00:53:23 +05:30
require("dotenv").config();
2023-09-21 13:46:48 +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({
2023-09-21 13:57:58 +05:30
appBundleId: "org.upscayl.Upscayl",
2023-09-03 00:53:23 +05:30
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLEID,
appleIdPassword: process.env.APPLEIDPASS,
2023-09-21 14:15:11 +05:30
teamId: process.env.TEAMID,
2023-09-03 00:53:23 +05:30
});
};