Skip to content

Commit

Permalink
fix: mac code sign compat
Browse files Browse the repository at this point in the history
  • Loading branch information
mayfield committed Dec 14, 2022
1 parent ffe9967 commit 8557a66
Showing 1 changed file with 3 additions and 3 deletions.
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 8557a66

Please sign in to comment.