aboutsummaryrefslogtreecommitdiffstats
path: root/build-helpers/notarize.js
diff options
context:
space:
mode:
Diffstat (limited to 'build-helpers/notarize.js')
-rw-r--r--build-helpers/notarize.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/build-helpers/notarize.js b/build-helpers/notarize.js
new file mode 100644
index 000000000..d799a5624
--- /dev/null
+++ b/build-helpers/notarize.js
@@ -0,0 +1,18 @@
1const { notarize } = require('electron-notarize');
2
3exports.default = async function notarizing(context) {
4 const { electronPlatformName, appOutDir } = context;
5 const isTagBuild = process.env.TRAVIS_TAG;
6 if (electronPlatformName !== 'darwin' || !isTagBuild) {
7 return;
8 }
9
10 const appName = context.packager.appInfo.productFilename;
11
12 return await notarize({
13 appBundleId: 'com.kytwb.ferdi',
14 appPath: `${appOutDir}/${appName}.app`,
15 appleId: process.env.APPLEID,
16 appleIdPassword: process.env.APPLEID_PASSWORD,
17 });
18};