Skip to content

Commit

Permalink
Add appleApiKeyId for notarize
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanebouget committed Jul 1, 2024
1 parent cdb35fe commit 01b7bd0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/notarize.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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}`);
Expand Down

0 comments on commit 01b7bd0

Please sign in to comment.