Skip to content

Discover MSVC runtime files during Windows builds - #210

Merged
ppXD merged 3 commits into
mainfrom
codex/fix-generic-msvc-runtime
Jul 28, 2026
Merged

ppXD merged 3 commits into
mainfrom
codex/fix-generic-msvc-runtime

Conversation

@ppXD

@ppXD ppXD commented Jul 28, 2026

Copy link
Copy Markdown
Owner

Summary

The v0.5.0 Windows build failed because its hard-coded VC143 runtime list required vcamp140.dll, while the current VS2026/VC145 runner no longer ships that optional DLL in Microsoft.VC145.CRT.

Discover and stage every DLL that the active Microsoft.VC*.CRT directory actually contains, validate only Wisp's minimum startup ABI, and bundle the discovered set with a Tauri glob. This remains compatible when hosted runners change Visual Studio generations or optional CRT files.

The installer smoke test now verifies every loaded VC++ runtime module comes from the Wisp install directory, not only msvcp140.dll.

Test plan

  • Reproduce the old implementation failing against a VC145-shaped runtime fixture
  • Run three production-module unit tests covering VC143/VC145 sets, stale cleanup, and missing required ABI files
  • Run Rust formatting checks for the root and Tauri workspaces
  • Run the runtime bundle config drift test
  • Parse Tauri JSON and the PowerShell installer smoke test
  • Pass CI, including Windows app build
  • Pass Windows Vulkan installer build, runtime verification, and installed-app smoke test

ppXD added 3 commits July 28, 2026 11:11
Hosted runners can change Visual Studio generations and the contents of Microsoft.VC*.CRT. Copy the DLLs the active toolset actually provides, bundle them through a glob, and test VC143- and VC145-shaped layouts so optional runtime changes cannot break packaging again.
The build staging directory keeps redistributable DLLs isolated from sherpa files, while Tauri flattens them in packages. Accept both representations so CI checks the same files before and after packaging.
Pass the NSIS destination switch in its required unquoted form, distinguish bundled MSVC redistributables from the system UCRT, and normalize CRLF manifest entries before Bash size checks.
@ppXD
ppXD merged commit d99c7cb into main Jul 28, 2026
7 checks passed
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