1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-12 01:40:53 +01:00
upscayl/notarize.js

20 lines
543 B
JavaScript
Raw Permalink Normal View History

2023-09-02 21:23:23 +02:00
require("dotenv").config();
2023-09-21 10:16:48 +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({
2023-09-21 10:27:58 +02:00
appBundleId: "org.upscayl.Upscayl",
2023-09-02 21:23:23 +02:00
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLEID,
appleIdPassword: process.env.APPLEIDPASS,
2023-09-21 10:45:11 +02:00
teamId: process.env.TEAMID,
2023-09-02 21:23:23 +02:00
});
};