From 36f98295e1a3c37be13ea328f39b8ea9c8e40224 Mon Sep 17 00:00:00 2001 From: sheehanmunim Date: Wed, 19 Aug 2026 16:19:14 -0400 Subject: [PATCH] fix(build): let the Windows payload guard account for the alternate app icons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Blade's build failed with "Windows packaged payload contains 81 files; expected at most 80". The guard is a tripwire on accidental bloat (a stray node_modules or source tree landing in the package), and MT Code deliberately ships three alternate app icons on top of upstream's payload — the icon the user picks is applied to the running window. Raised the limit to 84 so the tripwire still has a tight margin. Model: Claude Opus 5, harness: Claude Code --- scripts/build-desktop-artifact.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/build-desktop-artifact.ts b/scripts/build-desktop-artifact.ts index eb92456728d8..fae7e7b3cc31 100644 --- a/scripts/build-desktop-artifact.ts +++ b/scripts/build-desktop-artifact.ts @@ -868,7 +868,11 @@ export const WINDOWS_SERVER_ASAR_IGNORE_GLOBS = [ "**/node_modules/.bin", "**/node_modules/.bin/**", ] as const; -export const WINDOWS_PACKAGED_PAYLOAD_FILE_LIMIT = 80; +// A tripwire on payload bloat, not a hard budget: it catches an accidental +// node_modules tree or a stray source dir landing in the package. MT Code +// ships three alternate app icons on top of upstream's payload (the icon the +// user picks is applied to the running window), which is a deliberate +3. +export const WINDOWS_PACKAGED_PAYLOAD_FILE_LIMIT = 84; export const WINDOWS_SERVER_RESOURCE_SOURCE_DIR = "apps/desktop/prod-resources/windows-server"; export const WINDOWS_SERVER_EXTRA_RESOURCES = [ {