chore: Add env var based signing check for desktop client
This commit is contained in:
2 files changed
+39
-28
No files matched your search
@@ -0,0 +1,38 @@
|
||||
const process = require('process');
|
||||
|
||||
module.exports = {
|
||||
hooks: {
|
||||
prePackage: (forgeConfig) => {
|
||||
if (process.env.BOUNDARY_DESKTOP_SIGNING_IDENTITY) {
|
||||
forgeConfig.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.');
|
||||
}
|
||||
}
|
||||
},
|
||||
packagerConfig: {
|
||||
ignore: [
|
||||
"/ember-test(/|$)",
|
||||
"/tests(/|$)"
|
||||
],
|
||||
name: "Boundary Desktop",
|
||||
appBundleId: "com.electron.boundary",
|
||||
appVersion: "0.0.1",
|
||||
appCopyright: "Copyright © 2021 HashiCorp, Inc."
|
||||
},
|
||||
makers: [
|
||||
{
|
||||
name: "@electron-forge/maker-dmg",
|
||||
config: {
|
||||
name: "Boundary Desktop"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -16,34 +16,7 @@
|
||||
},
|
||||
"keywords": [],
|
||||
"config": {
|
||||
"forge": {
|
||||
"packagerConfig": {
|
||||
"ignore": [
|
||||
"/ember-test(/|$)",
|
||||
"/tests(/|$)"
|
||||
],
|
||||
"name": "Boundary Desktop",
|
||||
"appBundleId": "com.electron.boundary",
|
||||
"appVersion": "0.0.1",
|
||||
"appCopyright": "Copyright © 2021 HashiCorp, Inc.",
|
||||
"osxSign": {
|
||||
"identity": "Developer ID Application: Hashicorp, Inc. (D38WU7D763)",
|
||||
"hardenedRuntime": true,
|
||||
"gatekeeper-assess": false,
|
||||
"entitlements": "config/macos/entitlements.plist",
|
||||
"entitlements-inherit": "config/macos/entitlements.plist",
|
||||
"signature-flags": "library"
|
||||
}
|
||||
},
|
||||
"makers": [
|
||||
{
|
||||
"name": "@electron-forge/maker-dmg",
|
||||
"config": {
|
||||
"name": "Boundary Desktop"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
"forge": "config/forge.config.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^0.21.1",
|
||||
|
||||
Reference in new issue
Block a user