notarize
This commit is contained in:
parent
c4b2893db3
commit
fc6946ade1
2 changed files with 24 additions and 8 deletions
|
@ -1,9 +1,20 @@
|
|||
exports.default = function(context) {
|
||||
const { execSync } = require('child_process')
|
||||
|
||||
if (process.platform === "win32") {
|
||||
console.log('VMP signing start')
|
||||
execSync('python3 -m castlabs_evs.vmp sign-pkg ' + context.appOutDir,{stdio: 'inherit'})
|
||||
console.log('VMP signing complete')
|
||||
}
|
||||
|
||||
require('dotenv').config();
|
||||
const { notarize } = require('electron-notarize');
|
||||
|
||||
exports.default = async function notarizing(context) {
|
||||
const { electronPlatformName, appOutDir } = context;
|
||||
if (electronPlatformName !== 'darwin') {
|
||||
return;
|
||||
}
|
||||
|
||||
const appName = context.packager.appInfo.productFilename;
|
||||
|
||||
return await notarize({
|
||||
appBundleId: 'com.ciderapp.cider',
|
||||
appPath: `${appOutDir}/${appName}.app`,
|
||||
appleId: process.env.APPLEID,
|
||||
appleIdPassword: process.env.APPLEIDPASS,
|
||||
});
|
||||
};
|
|
@ -27,6 +27,8 @@
|
|||
"electron-acrylic-window": "^0.5.11",
|
||||
"electron-fetch": "^1.7.4",
|
||||
"electron-log": "^4.4.3",
|
||||
"electron-notarize": "^1.1.1",
|
||||
"electron-packager": "^15.4.0",
|
||||
"electron-store": "^8.0.1",
|
||||
"electron-updater": "^4.6.1",
|
||||
"electron-window-state": "^5.0.3",
|
||||
|
@ -82,6 +84,7 @@
|
|||
},
|
||||
"appId": "cider",
|
||||
"afterPack": "./build/afterPack.js",
|
||||
"afterSign": "./build/notarize.js",
|
||||
"protocols": [
|
||||
{
|
||||
"name": "Cider",
|
||||
|
@ -131,6 +134,8 @@
|
|||
"buildResources": "."
|
||||
},
|
||||
"mac": {
|
||||
"hardenedRuntime": true,
|
||||
"gatekeeperAssess": false,
|
||||
"icon": "./resources/icons/icon.icns",
|
||||
"category": "public.app-category.music",
|
||||
"entitlements": "build/entitlements.mac.plist",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue