Skip to content

Commit 4d590d3

Browse files
authored
feat: add afterPack call after macOS universal package is created (#6887)
1 parent 2ece89a commit 4d590d3

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.changeset/wet-ligers-heal.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"app-builder-lib": minor
3+
---
4+
5+
add afterPack call after macOS universal package is created

packages/app-builder-lib/src/macPackager.ts

+12
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,18 @@ export default class MacPackager extends PlatformPackager<MacConfiguration> {
132132
})
133133
await fs.rm(x64AppOutDir, { recursive: true, force: true })
134134
await fs.rm(arm64AppOutPath, { recursive: true, force: true })
135+
136+
// Give users a final opportunity to perform things on the combined universal package before signing
137+
const packContext: AfterPackContext = {
138+
appOutDir,
139+
outDir,
140+
arch,
141+
targets,
142+
packager: this,
143+
electronPlatformName: platformName,
144+
}
145+
await this.info.afterPack(packContext)
146+
135147
await this.doSignAfterPack(outDir, appOutDir, platformName, arch, platformSpecificBuildOptions, targets)
136148
break
137149
}

0 commit comments

Comments
 (0)