mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
build: remove custom notarize again
This commit is contained in:
parent
267684441d
commit
83e98f067b
3 changed files with 0 additions and 35 deletions
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
|
|
@ -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/
|
||||
|
|
|
|||
|
|
@ -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`);
|
||||
};
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
appId: superProductivity
|
||||
afterSign: build/scripts/notarize.js
|
||||
files:
|
||||
- electron/**/*
|
||||
- "!electron/**/*.ts"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue