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