diff --git a/scripts/notarize.js b/scripts/notarize.js index 0c49473..4f054d7 100644 --- a/scripts/notarize.js +++ b/scripts/notarize.js @@ -2,11 +2,11 @@ const fs = require("fs"); const path = require("path"); -var electron_notarize = require("electron-notarize"); +const electron_notarize = require("electron-notarize"); module.exports = async function (params) { console.log("----------------------------------", params); - var platform = params.packager.platform.name; + const platform = params.packager.platform.name; // Only notarize the app on Mac OS only. if (platform === "linux" || platform === "windows") { return; @@ -31,12 +31,12 @@ module.exports = async function (params) { tool: "notarytool", appBundleId: appId, appPath: appPath, - appleApiKeyId: process.env.API_KEY, - appleApiKey: process.env.API_KEY_ID, + appleApiKeyId: process.env.API_KEY_ID, + appleApiKey: process.env.API_KEY, appleApiIssuer: process.env.API_KEY_ISSUER_ID, }); } catch (error) { - console.error(error); + console.error("ERROR during Notarization", error); } console.log(`Done notarizing ${appId}`);