From 12b7b5018073140c88a52760fc81d3de0be8a4a3 Mon Sep 17 00:00:00 2001 From: Radek Pietruszewski Date: Wed, 18 Jan 2023 11:18:06 +0100 Subject: [PATCH 1/2] MAS builds should respect arch suffix --- 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 bd02eb98608..68592dc3c2b 100644 --- a/packages/app-builder-lib/src/macPackager.ts +++ b/packages/app-builder-lib/src/macPackager.ts @@ -181,7 +181,7 @@ export default class MacPackager extends PlatformPackager { }) } - 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) From a0e70d455b0522638fbca7cf84ff829017323da3 Mon Sep 17 00:00:00 2001 From: Mike Maietta Date: Wed, 18 Jan 2023 09:20:06 -0800 Subject: [PATCH 2/2] Create empty-onions-own.md --- .changeset/empty-onions-own.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/empty-onions-own.md diff --git a/.changeset/empty-onions-own.md b/.changeset/empty-onions-own.md new file mode 100644 index 00000000000..b6deb2a9b6b --- /dev/null +++ b/.changeset/empty-onions-own.md @@ -0,0 +1,5 @@ +--- +"app-builder-lib": patch +--- + +fix: MAS builds should respect arch suffix per `defaultArch` config