Skip to content

Commit

Permalink
feat: add afterPack call after macOS universal package is created (#6887
Browse files Browse the repository at this point in the history
)
  • Loading branch information
schetle committed May 28, 2022
1 parent 2ece89a commit 4d590d3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/wet-ligers-heal.md
@@ -0,0 +1,5 @@
---
"app-builder-lib": minor
---

add afterPack call after macOS universal package is created
12 changes: 12 additions & 0 deletions packages/app-builder-lib/src/macPackager.ts
Expand Up @@ -132,6 +132,18 @@ export default class MacPackager extends PlatformPackager<MacConfiguration> {
})
await fs.rm(x64AppOutDir, { recursive: true, force: true })
await fs.rm(arm64AppOutPath, { recursive: true, force: true })

// Give users a final opportunity to perform things on the combined universal package before signing
const packContext: AfterPackContext = {
appOutDir,
outDir,
arch,
targets,
packager: this,
electronPlatformName: platformName,
}
await this.info.afterPack(packContext)

await this.doSignAfterPack(outDir, appOutDir, platformName, arch, platformSpecificBuildOptions, targets)
break
}
Expand Down

0 comments on commit 4d590d3

Please sign in to comment.