diff options
Diffstat (limited to 'build-helpers/notarize.js')
-rw-r--r-- | build-helpers/notarize.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/build-helpers/notarize.js b/build-helpers/notarize.js index 1d9302880..f2c160e80 100644 --- a/build-helpers/notarize.js +++ b/build-helpers/notarize.js | |||
@@ -1,5 +1,3 @@ | |||
1 | const { notarize } = require('electron-notarize'); | ||
2 | |||
3 | exports.default = async function notarizing(context) { | 1 | exports.default = async function notarizing(context) { |
4 | const { electronPlatformName, appOutDir } = context; | 2 | const { electronPlatformName, appOutDir } = context; |
5 | if (electronPlatformName !== 'darwin' || process.env.SKIP_NOTARIZATION === 'true' || (process.env.GIT_BRANCH_NAME !== 'release' && process.env.GIT_BRANCH_NAME !== 'nightly')) { | 3 | if (electronPlatformName !== 'darwin' || process.env.SKIP_NOTARIZATION === 'true' || (process.env.GIT_BRANCH_NAME !== 'release' && process.env.GIT_BRANCH_NAME !== 'nightly')) { |
@@ -8,6 +6,9 @@ exports.default = async function notarizing(context) { | |||
8 | 6 | ||
9 | const appName = context.packager.appInfo.productFilename; | 7 | const appName = context.packager.appInfo.productFilename; |
10 | 8 | ||
9 | // @ts-ignore global-require | ||
10 | const { notarize } = require('electron-notarize'); | ||
11 | |||
11 | await notarize({ | 12 | await notarize({ |
12 | appBundleId: 'com.kytwb.ferdi', | 13 | appBundleId: 'com.kytwb.ferdi', |
13 | appPath: `${appOutDir}/${appName}.app`, | 14 | appPath: `${appOutDir}/${appName}.app`, |