Skip to content

Commit 1422bb9

Browse files
committed
Skip notarizing step
1 parent c9fd472 commit 1422bb9

File tree

1 file changed

+2
-26
lines changed

1 file changed

+2
-26
lines changed

.erb/scripts/Notarize.js

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,4 @@
1-
const { notarize } = require('electron-notarize');
2-
const { build } = require('../../package.json');
3-
41
exports.default = async function notarizeMacos(context) {
5-
const { electronPlatformName, appOutDir } = context;
6-
if (electronPlatformName !== 'darwin') {
7-
return;
8-
}
9-
10-
if (!process.env.CI) {
11-
console.warn('Skipping notarizing step. Packaging is not running in CI');
12-
return;
13-
}
14-
15-
if (!('APPLE_ID' in process.env && 'APPLE_ID_PASS' in process.env)) {
16-
console.warn('Skipping notarizing step. APPLE_ID and APPLE_ID_PASS env variables must be set');
17-
return;
18-
}
19-
20-
const appName = context.packager.appInfo.productFilename;
21-
22-
await notarize({
23-
appBundleId: build.appId,
24-
appPath: `${appOutDir}/${appName}.app`,
25-
appleId: process.env.APPLE_ID,
26-
appleIdPassword: process.env.APPLE_ID_PASS,
27-
});
2+
console.warn('Skipping notarizing step');
3+
return;
284
};

0 commit comments

Comments
 (0)