Skip to content

Windows: tcode.exe embeds the application manifest GPUI needs, so it starts again - #1230

Merged
Tryanks merged 1 commit into
mainfrom
fix/windows-app-manifest
Dec 6, 2026
Merged

Tryanks merged 1 commit into
mainfrom
fix/windows-app-manifest

Conversation

@Tryanks

@Tryanks Tryanks commented Dec 6, 2026 •

Copy link
Copy Markdown
Owner

Summary

 tcode.exe resources (assets/icons/app/tcode.rc)
   1 ICON      tcode.ico
+  1 MANIFEST  tcode.manifest.xml   # GPUI's manifest: Common-Controls v6, PerMonitorV2, SegmentHeap
 crates/app/build.rs
-  .manifest_optional()
+  .manifest_required()

Since e638407 (v0.5.4) no manifest reached tcode.exe:

v0.5.3  gpui-pre (default windows-manifest)        -> embeds manifest
v0.5.4+ gpui-pre gone from the desktop build
        gpui-fast windows-manifest                 -> skipped:
          gpui-base / gpui-kit enable windows-manifest-provided-by-host
        tcode.rc                                   -> icon only

Without the Common-Controls v6 dependency the loader binds comctl32 v5, which has no TaskDialogIndirect (imported by gpui-fast-windows), so the exe refuses to start: "无法定位程序输入点 TaskDialogIndirect 于动态链接库 tcode.exe 上". manifest_required turns a missing resource compiler into a build failure instead of another exe without the manifest.

Evidence

  • Before: released tcode.exe, grep -a -c Microsoft.Windows.Common-Controls:
    v0.5.3  1
    v0.5.4  0
    v0.5.5  0
    
    cargo tree --target x86_64-pc-windows-msvc -e features -i gpui-fast shows windows-manifest and windows-manifest-provided-by-host both on, and no gpui-pre.
  • After: tcode.exe cross-built from this branch (cargo xwin build -p tcode --target x86_64-pc-windows-msvc; debug, since release shaders need fxc.exe), llvm-readobj --coff-resources / --coff-imports:
    v0.5.5 release  ICON, GROUP_ICON
    this branch     ICON, GROUP_ICON, MANIFEST   (Common-Controls hits: 1)
    imports         comctl32.dll!TaskDialogIndirect
    
    Not launched on Windows from here; the Windows CI jobs build it natively.

Merge Danger

Door: Two-way

Blast Radius: Windows desktop binary

Only tcode.exe's embedded resources change; Windows builds run on MSVC runners, which have rc.exe.

…starts again

Since gpui-base 0.12 dropped gpui-pre from the desktop build (e638407),
nothing embedded a manifest: gpui-base and gpui-kit turn on gpui-fast's
windows-manifest-provided-by-host, and Tcode's resource script carried only
the icon. Without the Common-Controls v6 dependency the loader binds
comctl32 v5, which has no TaskDialogIndirect, and v0.5.4 and v0.5.5 refuse to
start. The manifest is GPUI's own, so per-monitor DPI awareness returns too,
and the build now fails instead of shipping an exe without it.
@Tryanks
Tryanks merged commit caf2627 into main Dec 6, 2026
13 checks passed
@Tryanks
Tryanks deleted the fix/windows-app-manifest branch December 6, 2026 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant