From 9d181520f798357d31db762367bf3b41428555f2 Mon Sep 17 00:00:00 2001 From: Nayam Amarshe <25067102+NayamAmarshe@users.noreply.github.com> Date: Sun, 3 Sep 2023 00:53:23 +0530 Subject: [PATCH] Add notarize --- scripts/notarize.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 scripts/notarize.js diff --git a/scripts/notarize.js b/scripts/notarize.js new file mode 100644 index 0000000..34ce6c9 --- /dev/null +++ b/scripts/notarize.js @@ -0,0 +1,18 @@ +require("dotenv").config(); +const { notarize } = require("electron-notarize"); + +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, + }); +};