Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Rename notarize -> afterSign script
Browse files Browse the repository at this point in the history
  • Loading branch information
jwheare committed Feb 27, 2020
1 parent a533e61 commit d70b594
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion electron-builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"entitlements": "build/entitlements.mac.plist",
"entitlementsInherit": "build/entitlements.mac.plist"
},
"afterSign": "./scripts/notarize.js",
"afterSign": "./scripts/afterSign.js",
"dmg": {
"icon": null,
"sign": false
Expand Down
11 changes: 5 additions & 6 deletions scripts/notarize.js → scripts/afterSign.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
const { notarize } = require('electron-notarize');
const log = require("builder-util/out/log").log;

exports.default = async function notarizing(context) {
const { electronPlatformName, appOutDir } = context;
exports.default = async function afterSign(context) {
const { electronPlatformName, appOutDir, outDir, packager } = context;

if (electronPlatformName !== 'darwin') {
return;
}

if (context.packager.config.extraMetadata.irccloud.local_build) {
if (packager.config.extraMetadata.irccloud.local_build) {
return;
}

const appName = context.packager.appInfo.productFilename;

const appName = packager.appInfo.productFilename;
const appPath = `${appOutDir}/${appName}.app`;
const appBundleId = 'com.irccloud.desktop';
const appBundleId = packager.config.appId;

log.info({appBundleId: appBundleId, appPath: appPath}, 'notarizing');

Expand Down

0 comments on commit d70b594

Please sign in to comment.