Skip to content

Commit

Permalink
fix: Update MacOS signOptions on macPackager #7317 (#7351)
Browse files Browse the repository at this point in the history
  • Loading branch information
filfreire authored Jan 6, 2023
1 parent 9c0c422 commit 1e8dad8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilled-shoes-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"app-builder-lib": minor
---

Update MacOS signOptions on macPackager
6 changes: 3 additions & 3 deletions packages/app-builder-lib/src/macPackager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export default class MacPackager extends PlatformPackager<MacConfiguration> {
}

const signOptions: any = {
"identity-validation": false,
identityValidation: false,
// https://github.com/electron-userland/electron-builder/issues/1699
// kext are signed by the chipset manufacturers. You need a special certificate (only available on request) from Apple to be able to sign kext.
ignore: (file: string) => {
Expand All @@ -294,7 +294,7 @@ export default class MacPackager extends PlatformPackager<MacConfiguration> {
https://github.com/electron-userland/electron-builder/issues/5383
*/
},
identity: identity,
identity: identity ? identity.name : undefined,
type,
platform: isMas ? "mas" : "darwin",
version: this.config.electronVersion,
Expand All @@ -307,7 +307,7 @@ export default class MacPackager extends PlatformPackager<MacConfiguration> {
// will fail on 10.14.5+ because a signed but unnotarized app is also rejected.
"gatekeeper-assess": options.gatekeeperAssess === true,
// https://github.com/electron-userland/electron-builder/issues/1480
"strict-verify": options.strictVerify,
strictVerify: options.strictVerify,
hardenedRuntime: isMas ? masOptions && masOptions.hardenedRuntime === true : options.hardenedRuntime !== false,
}

Expand Down

0 comments on commit 1e8dad8

Please sign in to comment.