Skip to content

Commit

Permalink
fix(mac): Pass buildOptions down to notarization for platform-speci…
Browse files Browse the repository at this point in the history
…fic build options (#7886)
  • Loading branch information
mmaietta committed Nov 19, 2023
1 parent abf52ea commit d7e39f0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/popular-countries-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"app-builder-lib": patch
---

fix(mac): pass in correct notarize options
10 changes: 5 additions & 5 deletions packages/app-builder-lib/src/macPackager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export default class MacPackager extends PlatformPackager<MacConfiguration> {
}

if (!isMas) {
await this.notarizeIfProvided(appPath)
await this.notarizeIfProvided(appPath, options)
}
return true
}
Expand Down Expand Up @@ -481,10 +481,10 @@ export default class MacPackager extends PlatformPackager<MacConfiguration> {
return true
}

private async notarizeIfProvided(appPath: string) {
const notarizeOptions = this.platformSpecificBuildOptions.notarize
if (notarizeOptions === false) {
log.info({ reason: "`notarizeOptions` is explicitly set to false" }, "skipped macOS notarization")
private async notarizeIfProvided(appPath: string, buildOptions: MacConfiguration) {
const notarizeOptions = buildOptions.notarize
if (!notarizeOptions) {
log.info({ reason: "`notarize` options were not provided" }, "skipped macOS notarization")
return
}
const options = this.getNotarizeOptions(appPath)
Expand Down

0 comments on commit d7e39f0

Please sign in to comment.