aboutsummaryrefslogtreecommitdiffstats
path: root/build-helpers/notarize.js
blob: 26a627bea0b88eae6655bf7330366c0650649a10 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const { notarize } = require("electron-notarize");

exports.default = async function notarizing(context) {
  const { electronPlatformName, appOutDir } = context;
  const isTagBuild = process.env.TRAVIS_TAG;
  if (electronPlatformName !== "darwin" || !isTagBuild) {
    return;
  }

  const appName = context.packager.appInfo.productFilename;

  return await notarize({
    appBundleId: "com.kytwb.ferdi",
    appPath: `${appOutDir}/${appName}.app`,
    ascProvider: "B6J9X9DWFL",
    appleId: process.env.APPLEID,
    appleIdPassword: process.env.APPLEID_PASSWORD
  });
};