Skip to content

Commit

Permalink
add option to disable gatekeeper assessment in electron-osx-sign. re e…
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilian committed May 27, 2019
1 parent 09dd74d commit e306b45
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/app-builder-lib/src/macPackager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ export default class MacPackager extends PlatformPackager<MacConfiguration> {
keychain: keychainName || undefined,
binaries: (isMas && masOptions != null ? masOptions.binaries : macOptions.binaries) || undefined,
requirements: isMas || macOptions.requirements == null ? undefined : await this.getResource(macOptions.requirements),
"gatekeeper-assess": appleCertificatePrefixes.find(it => identity!.name.startsWith(it)) != null,
// https://github.com/electron-userland/electron-osx-sign/issues/196
// will fail on 10.14.5+ because a signed but unnotarized app is also rejected.
"gatekeeper-assess": macOptions.gatekeeperAssess,
"hardened-runtime": macOptions.hardenedRuntime,
}

Expand Down
6 changes: 6 additions & 0 deletions packages/app-builder-lib/src/options/macOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ export interface MacConfiguration extends PlatformSpecificBuildOptions {
* @default false
*/
readonly hardenedRuntime?: boolean

/**
* Whether to let electron-osx-sign validate the signing or not
* @default true
*/
readonly gatekeeperAssess?: boolean
}

export interface DmgOptions extends TargetSpecificOptions {
Expand Down

0 comments on commit e306b45

Please sign in to comment.