Skip to content

Commit

Permalink
fix: MAS builds should respect arch suffix per defaultArch config (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
radex authored Jan 22, 2023
1 parent f1ce1d2 commit e5748b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/empty-onions-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"app-builder-lib": patch
---

fix: MAS builds should respect arch suffix per `defaultArch` config
2 changes: 1 addition & 1 deletion packages/app-builder-lib/src/macPackager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export default class MacPackager extends PlatformPackager<MacConfiguration> {
})
}

const targetOutDir = path.join(outDir, `${targetName}${getArchSuffix(arch)}`)
const targetOutDir = path.join(outDir, `${targetName}${getArchSuffix(arch, this.platformSpecificBuildOptions.defaultArch)}`)
if (prepackaged == null) {
await this.doPack(outDir, targetOutDir, "mas", arch, masBuildOptions, [target])
await this.sign(path.join(targetOutDir, `${this.appInfo.productFilename}.app`), targetOutDir, masBuildOptions, arch)
Expand Down

0 comments on commit e5748b3

Please sign in to comment.