From b86441584d85c4901c2e6042285422423b551274 Mon Sep 17 00:00:00 2001 From: "Ryan M. Shetley" Date: Wed, 25 May 2022 12:30:32 -0500 Subject: [PATCH 1/3] Give users a final afterPack hook for the combined universal package before signing --- packages/app-builder-lib/src/macPackager.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/app-builder-lib/src/macPackager.ts b/packages/app-builder-lib/src/macPackager.ts index e0331393e73..7e9add4efb0 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 } From a2b4d3b4233672d1b7a553838102fe6551603edc Mon Sep 17 00:00:00 2001 From: "Ryan M. Shetley" Date: Wed, 25 May 2022 12:47:50 -0500 Subject: [PATCH 2/3] whitespace cleanup --- packages/app-builder-lib/src/macPackager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app-builder-lib/src/macPackager.ts b/packages/app-builder-lib/src/macPackager.ts index 7e9add4efb0..cca74253f38 100644 --- a/packages/app-builder-lib/src/macPackager.ts +++ b/packages/app-builder-lib/src/macPackager.ts @@ -132,7 +132,7 @@ 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, From ea0400bacacf8945a222ee07e770e6b5b7b2f2ff Mon Sep 17 00:00:00 2001 From: "Ryan M. Shetley" Date: Wed, 25 May 2022 13:29:26 -0500 Subject: [PATCH 3/3] add changeset --- .changeset/wet-ligers-heal.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/wet-ligers-heal.md 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