From bb37687540aa254bce6a92a86c56b606cc16f2be Mon Sep 17 00:00:00 2001 From: Radek Pietruszewski Date: Wed, 18 Jan 2023 19:16:04 +0100 Subject: [PATCH] fix: Allow MAS builds to be unsigned if `identity: null` is explicitly passed (#7382) --- .changeset/eleven-trainers-brake.md | 5 +++++ packages/app-builder-lib/src/macPackager.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/eleven-trainers-brake.md diff --git a/.changeset/eleven-trainers-brake.md b/.changeset/eleven-trainers-brake.md new file mode 100644 index 00000000000..f4643519944 --- /dev/null +++ b/.changeset/eleven-trainers-brake.md @@ -0,0 +1,5 @@ +--- +"app-builder-lib": patch +--- + +fix: Allow MAS builds to be unsigned if `identity: null` is explicitly passed diff --git a/packages/app-builder-lib/src/macPackager.ts b/packages/app-builder-lib/src/macPackager.ts index bd02eb98608..f24787d51ea 100644 --- a/packages/app-builder-lib/src/macPackager.ts +++ b/packages/app-builder-lib/src/macPackager.ts @@ -204,7 +204,7 @@ export default class MacPackager extends PlatformPackager { const options = masOptions == null ? this.platformSpecificBuildOptions : masOptions const qualifier = options.identity - if (!isMas && qualifier === null) { + if (qualifier === null) { if (this.forceCodeSigning) { throw new InvalidConfigurationError("identity explicitly is set to null, but forceCodeSigning is set to true") }