chore: Use basic electronforge config to view signing errors

This commit is contained in:
Susmitha Girumala committed 2021-02-02 10:04:28 -05:00
1 parent 2a51f04ca7
commit b28fed1f34
1 file changed
+11 -13
+11 -13
View File
@@ -2,18 +2,9 @@ const process = require('process');
module.exports = {
hooks: {
preMake: (forgeConfig) => {
if (process.env.BOUNDARY_DESKTOP_SIGNING_IDENTITY) {
forgeConfig.packagerConfig.osxSign = {
identity: process.env.BOUNDARY_DESKTOP_SIGNING_IDENTITY,
hardenedRuntime: true,
"gatekeeper-assess": false,
entitlements: "config/macos/entitlements.plist",
"entitlements-inherit": "config/macos/entitlements.plist",
"signature-flags": "library"
}
} else {
console.warn('Could not find signing identity. Skipping signing.');
prePackage: () => {
if (!process.env.BOUNDARY_DESKTOP_SIGNING_IDENTITY) {
console.warn('\nWARNING: Could not find signing identity.');
}
}
},
@@ -25,7 +16,14 @@ module.exports = {
name: "Boundary Desktop",
appBundleId: "com.electron.boundary",
appVersion: "0.0.1",
appCopyright: "Copyright © 2021 HashiCorp, Inc."
appCopyright: "Copyright © 2021 HashiCorp, Inc.",
osxSign: {
identity: process.env.BOUNDARY_DESKTOP_SIGNING_IDENTITY,
"hardened-runtime": true,
entitlements: "./config/macos/entitlements.plist",
"entitlements-inherit": "./config/macos/entitlements.plist",
"signature-flags": "library"
}
},
makers: [
{