diff options
author | Vijay A <avijayr@protonmail.com> | 2021-06-15 08:27:19 +0530 |
---|---|---|
committer | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-06-15 08:32:22 +0530 |
commit | 40d14fa9f5edd8eb71f697eb8fe412bd0cd35bfd (patch) | |
tree | 90d1b52b139d1f3b297880e9fdc38ae04d744c58 /build-helpers/notarize.js | |
parent | Upgraded some npm modules (#1525) (diff) | |
download | ferdium-app-40d14fa9f5edd8eb71f697eb8fe412bd0cd35bfd.tar.gz ferdium-app-40d14fa9f5edd8eb71f697eb8fe412bd0cd35bfd.tar.zst ferdium-app-40d14fa9f5edd8eb71f697eb8fe412bd0cd35bfd.zip |
Skip notarization of the build artifact if not building for the main repo (ie building on a forked repo)..
Diffstat (limited to 'build-helpers/notarize.js')
-rw-r--r-- | build-helpers/notarize.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/build-helpers/notarize.js b/build-helpers/notarize.js index d5a6027fb..1d9302880 100644 --- a/build-helpers/notarize.js +++ b/build-helpers/notarize.js | |||
@@ -1,18 +1,18 @@ | |||
1 | const { notarize } = require("electron-notarize"); | 1 | const { notarize } = require('electron-notarize'); |
2 | 2 | ||
3 | exports.default = async function notarizing(context) { | 3 | exports.default = async function notarizing(context) { |
4 | const { electronPlatformName, appOutDir } = context; | 4 | const { electronPlatformName, appOutDir } = context; |
5 | if (electronPlatformName !== "darwin" || (process.env.GIT_BRANCH_NAME !== 'release' && process.env.GIT_BRANCH_NAME !== 'nightly')) { | 5 | if (electronPlatformName !== 'darwin' || process.env.SKIP_NOTARIZATION === 'true' || (process.env.GIT_BRANCH_NAME !== 'release' && process.env.GIT_BRANCH_NAME !== 'nightly')) { |
6 | return; | 6 | return; |
7 | } | 7 | } |
8 | 8 | ||
9 | const appName = context.packager.appInfo.productFilename; | 9 | const appName = context.packager.appInfo.productFilename; |
10 | 10 | ||
11 | return await notarize({ | 11 | await notarize({ |
12 | appBundleId: "com.kytwb.ferdi", | 12 | appBundleId: 'com.kytwb.ferdi', |
13 | appPath: `${appOutDir}/${appName}.app`, | 13 | appPath: `${appOutDir}/${appName}.app`, |
14 | ascProvider: "B6J9X9DWFL", | 14 | ascProvider: 'B6J9X9DWFL', |
15 | appleId: process.env.APPLEID, | 15 | appleId: process.env.APPLEID, |
16 | appleIdPassword: process.env.APPLEID_PASSWORD | 16 | appleIdPassword: process.env.APPLEID_PASSWORD, |
17 | }); | 17 | }); |
18 | }; | 18 | }; |