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')
|
require('dotenv').config();
|
||||||
execSync('python3 -m castlabs_evs.vmp sign-pkg ' + context.appOutDir,{stdio: 'inherit'})
|
const { notarize } = require('electron-notarize');
|
||||||
console.log('VMP signing complete')
|
|
||||||
|
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-acrylic-window": "^0.5.11",
|
||||||
"electron-fetch": "^1.7.4",
|
"electron-fetch": "^1.7.4",
|
||||||
"electron-log": "^4.4.3",
|
"electron-log": "^4.4.3",
|
||||||
|
"electron-notarize": "^1.1.1",
|
||||||
|
"electron-packager": "^15.4.0",
|
||||||
"electron-store": "^8.0.1",
|
"electron-store": "^8.0.1",
|
||||||
"electron-updater": "^4.6.1",
|
"electron-updater": "^4.6.1",
|
||||||
"electron-window-state": "^5.0.3",
|
"electron-window-state": "^5.0.3",
|
||||||
|
@ -82,6 +84,7 @@
|
||||||
},
|
},
|
||||||
"appId": "cider",
|
"appId": "cider",
|
||||||
"afterPack": "./build/afterPack.js",
|
"afterPack": "./build/afterPack.js",
|
||||||
|
"afterSign": "./build/notarize.js",
|
||||||
"protocols": [
|
"protocols": [
|
||||||
{
|
{
|
||||||
"name": "Cider",
|
"name": "Cider",
|
||||||
|
@ -131,6 +134,8 @@
|
||||||
"buildResources": "."
|
"buildResources": "."
|
||||||
},
|
},
|
||||||
"mac": {
|
"mac": {
|
||||||
|
"hardenedRuntime": true,
|
||||||
|
"gatekeeperAssess": false,
|
||||||
"icon": "./resources/icons/icon.icns",
|
"icon": "./resources/icons/icon.icns",
|
||||||
"category": "public.app-category.music",
|
"category": "public.app-category.music",
|
||||||
"entitlements": "build/entitlements.mac.plist",
|
"entitlements": "build/entitlements.mac.plist",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue