aboutsummaryrefslogtreecommitdiffstats
path: root/build-helpers
diff options
context:
space:
mode:
authorLibravatar Amine Mouafik <amine@mouafik.fr>2020-01-15 12:13:10 +0100
committerLibravatar Amine Mouafik <amine@mouafik.fr>2020-01-15 12:13:10 +0100
commit9d04827adca0ff4542d281b1d950524ab761529f (patch)
tree29dc3a307560b408a750f0edb8d65ddd2f872634 /build-helpers
parentBump version number (diff)
downloadferdium-app-9d04827adca0ff4542d281b1d950524ab761529f.tar.gz
ferdium-app-9d04827adca0ff4542d281b1d950524ab761529f.tar.zst
ferdium-app-9d04827adca0ff4542d281b1d950524ab761529f.zip
Add ascProvider to fix notarizing on macOS
I am now managing multiple apps so I had to specify the ascProvider now; it was unecessary before.
Diffstat (limited to 'build-helpers')
-rw-r--r--build-helpers/notarize.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/build-helpers/notarize.js b/build-helpers/notarize.js
index d799a5624..26a627bea 100644
--- a/build-helpers/notarize.js
+++ b/build-helpers/notarize.js
@@ -1,18 +1,19 @@
1const { notarize } = require('electron-notarize'); 1const { notarize } = require("electron-notarize");
2 2
3exports.default = async function notarizing(context) { 3exports.default = async function notarizing(context) {
4 const { electronPlatformName, appOutDir } = context; 4 const { electronPlatformName, appOutDir } = context;
5 const isTagBuild = process.env.TRAVIS_TAG; 5 const isTagBuild = process.env.TRAVIS_TAG;
6 if (electronPlatformName !== 'darwin' || !isTagBuild) { 6 if (electronPlatformName !== "darwin" || !isTagBuild) {
7 return; 7 return;
8 } 8 }
9 9
10 const appName = context.packager.appInfo.productFilename; 10 const appName = context.packager.appInfo.productFilename;
11 11
12 return await notarize({ 12 return await notarize({
13 appBundleId: 'com.kytwb.ferdi', 13 appBundleId: "com.kytwb.ferdi",
14 appPath: `${appOutDir}/${appName}.app`, 14 appPath: `${appOutDir}/${appName}.app`,
15 ascProvider: "B6J9X9DWFL",
15 appleId: process.env.APPLEID, 16 appleId: process.env.APPLEID,
16 appleIdPassword: process.env.APPLEID_PASSWORD, 17 appleIdPassword: process.env.APPLEID_PASSWORD
17 }); 18 });
18}; 19};