Skip to content

Commit

Permalink
Pass buildOptions down to notarization to explicitly pull build options
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaietta committed Nov 18, 2023
1 parent 9883ab6 commit 57fda9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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 appleId = process.env.APPLE_ID
Expand Down
2 changes: 1 addition & 1 deletion packages/app-builder-lib/src/targets/FlatpakTarget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default class FlatpakTarget extends Target {
const copyIcons = icons.map(async icon => {
if (icon.size > 512) {
// Flatpak does not allow icons larger than 512 pixels
return Promise.resolve();
return Promise.resolve()
}
const extWithDot = path.extname(icon.file)
const sizeName = extWithDot === ".svg" ? "scalable" : `${icon.size}x${icon.size}`
Expand Down

0 comments on commit 57fda9b

Please sign in to comment.