build: remove custom notarize again

This commit is contained in:
Johannes Millan 2020-10-03 21:33:37 +02:00
parent 267684441d
commit 83e98f067b
3 changed files with 0 additions and 35 deletions

View file

@ -64,7 +64,6 @@ jobs:
PROVISION_PROFILE: ${{secrets.dl_provision_profile}}
- name: Prepare for app notarization
if: startsWith(matrix.os, 'macos')
# Import Apple API key for app notarization on macOS
run: |
mkdir -p ~/private_keys/

View file

@ -1,33 +0,0 @@
require('dotenv').config();
const {notarize} = require('electron-notarize');
const fs = require('fs');
exports.default = async function notarizing(context) {
const {electronPlatformName, appOutDir} = context;
if (electronPlatformName !== 'darwin') {
return;
}
const appName = context.packager.appInfo.productFilename;
const appBundleId = context.packager.appInfo.macBundleIdentifier;
const appPath = `${appOutDir}/${appName}.app`;
if (!fs.existsSync(appPath)) {
throw new Error(`Cannot find application at: ${appPath}`);
}
try {
let envBefore = process.env.DEBUG;
process.env.DEBUG = 'electron-notarize';
await notarize({
appBundleId,
appPath,
appleId: process.env.APPLEID,
appleIdPassword: process.env.APPLEIDPASS,
});
process.env.DEBUG = envBefore;
} catch (e) {
console.error(e);
throw new Error(e);
}
console.log(`Notarizing DONE`);
};

View file

@ -1,5 +1,4 @@
appId: superProductivity
afterSign: build/scripts/notarize.js
files:
- electron/**/*
- "!electron/**/*.ts"