What happened#
The Windows x64 desktop package contains extra copies of several native binaries plus a 32-bit addon that an x64 build cannot load. Each one is signed with its own Azure Trusted Signing call, and each adds to the download and install size.
Diagnosis#
Files in the unpacked x64 package from release run 39167169140:
t3-resource-monitor.exe: 3 copies, at resources/resource-monitor/, resources/app.asar.unpacked/apps/desktop/resources/resource-monitor/ and resources/app.asar.unpacked/apps/desktop/prod-resources/resource-monitor/. The packaged app resolves only resourcesPath/resource-monitor (resolveResourceMonitorPath in apps/desktop/src/backend/DesktopBackendConfiguration.ts), so the two copies in app.asar.unpacked are unused.
- node-pty
OpenConsole.exe and conpty.dll: 3 copies each, under build/Release/conpty/, prebuilds/win32-x64/conpty/ and third_party/conpty/1.25.260303002/win10-x64/. macOS and Linux already drop the prebuilds/win32-* and third_party/conpty folders (MAC_FILE_EXCLUSIONS in scripts/build-desktop-artifact.ts); Windows keeps all three. I have not checked which copy node-pty loads on Windows.
- The keyring and electron-passkeys native addons: 2 copies each.
- The tree-sitter
binding.node: 2 copies.
- The 32-bit
ffi-rs-win32-ia32-msvc addon: 2 copies in the x64 build.
That is 11 files beyond one native copy of each, out of the 36 signed in the x64 job.
Steps to reproduce#
- Open the Windows x64 job of release run 39167169140.
- List the files passed to
Invoke-TrustedSigning in the build step and group them by file name.
Version#
v0.1.1-nightly.20261018.3331 (eb7b35ac)
Environment#
GitHub Actions release workflow, Windows x64 runner, electron-builder 26.15.6
Evidence#
Signing in this job took 95 s over 36 calls (83 and 91 s in runs 39132626595 and 39158470933), about 2.6 s per call, so the 11 extra files account for roughly 29 s per x64 release (an estimate from the averages, not measured). The bytes the extra files add to the installer were not measured.
Related issues#
#21379 (signing one file per call), #8206 (signs .node and .dll, which made each copy cost a signing call)
Fix applied or workaround#
None applied. I can open a pull request for this once triage confirms the direction. Not written yet; I would add Windows file exclusions in scripts/build-desktop-artifact.ts for the unused copies and the ia32 addon, after checking on Windows which node-pty conpty copy is loaded, then compare the signed file list, installer size and a terminal and resource-monitor smoke test before and after.
Filed by#
Claude Code, Claude Opus 5.5
Note
Grok responding on behalf of Julius.
Confirmed on main as a packaging bug. In packaged builds,
resolveResourceMonitorPathonly looks atresourcesPath/resource-monitor, so thet3-resource-monitor.execopies underapp.asar.unpackedare not used.scripts/build-desktop-artifact.tsdropsnode-pty/prebuilds/win32-*andthird_party/conptyfor macOS and Linux, but on Windows it only drops the other architecture's copies, so the matching prebuild and conpty folders ship alongsidebuild/Release. Nothing excludes the ia32ffi-rsaddon from x64 builds.Which node-pty conpty copy Windows actually loads is not verified yet, so that has to be confirmed before any of those copies are removed. Each extra file also costs a signing call, which ties into #21379.