diff --git a/.changeset/wet-ligers-heal.md b/.changeset/wet-ligers-heal.md new file mode 100644 index 00000000000..ade3f10e273 --- /dev/null +++ b/.changeset/wet-ligers-heal.md @@ -0,0 +1,5 @@ +--- +"app-builder-lib": minor +--- + +add afterPack call after macOS universal package is created diff --git a/packages/app-builder-lib/src/macPackager.ts b/packages/app-builder-lib/src/macPackager.ts index e0331393e73..cca74253f38 100644 --- a/packages/app-builder-lib/src/macPackager.ts +++ b/packages/app-builder-lib/src/macPackager.ts @@ -132,6 +132,18 @@ export default class MacPackager extends PlatformPackager { }) 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 }