fix(desktop): Windows packages stop shipping unused native binaries

Closed
BO
1mo ago
+84-28

Fork review only (not merged here); the same diff goes upstream for pingdotgg/t3code#21381.

Windows packages carry native files the app never loads, and each one costs a signing call: two staged copies of the resource monitor, node-pty's build/Release/conpty and third_party/conpty folders, and the 32-bit ffi-rs addon in x64 builds. This excludes them. node-pty loads its prebuilds on Windows and uses conpty.dll only with useConptyDll, which T3 does not set.

Checks: vp test run scripts/build-desktop-artifact.test.ts 79/79, lint, format and scripts typecheck pass. No packaged Windows build was run.


Summary by cubic

Windows packages stop shipping native binaries the app never loads, reducing the number of files that need signing. Fork review only; the same diff goes upstream.

  • Drops staged resource-monitor copies under resources and prod-resources; the packaged app serves it from the extra resource instead.
  • Removes node-pty's build/Release/conpty and third_party/conpty folders; the app loads prebuilds and never sets useConptyDll.
  • Excludes the ia32 @yuuang/ffi-rs-win32-ia32-msvc addon, which pnpm installs even in x64 stages.
  • Packaging tests cover the loaded and unused natives (79/79 pass, lint and format clean); no packaged Windows build was run.