Repository navigation
Load on Windows 10: bootstrap the framework without Windows 11-only imports - #9
Merged
Merged
Conversation
The bootstrap no longer imports the Windows 11 dynamic dependency API, so the executable loads on Windows 10 again. Builds before Windows 11 24H1 need Microsoft.WindowsAppRuntime.Bootstrap.dll beside the executable for the GUI.
This was referenced Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
TryCreatePackageDependencyandAddPackageDependencystatically, and those exist only on Windows 11. That took down CLI mode and the runtime check too.kernelbase.dllexportsTryCreatePackageDependency2), the same gate Windows App SDK's own bootstrapper uses.Microsoft.WindowsAppRuntime.Bootstrap.dllfrom the executable's directory and callsMddBootstrapInitialize2.Bootstrap.dllrequirement before 24H1.Fork change: libnyanpasu/windows-rs
nyanpasuatd1574fd(one commit; to be added as patch 8 in #2).This makes CLI mode work on Windows 10 again. The GUI there also needs
Bootstrap.dllbeside the executable; clash-nyanpasu will bundle the published one. DDLM detection inruntime_checkand testing on a real Windows 10 machine are tracked in #8, so this PR does not close #7.Behavior change: Windows 11 22H2 and 23H2 also take the bootstrapper path now, as in Windows App SDK's bootstrapper.
Test plan
cargo test -p enable-loopback(53), clippy-D warnings, fmt--features test(305 + 6 + 75), clippy-D warningsapi-ms-win-appmodel-runtime-l1-1-5.dllBootstrap.dllthe GUI reports "Could not load Microsoft.WindowsAppRuntime.Bootstrap.dll … (0x8007007E)"; with it (Foundation 2.3.12 x64), the DLL loads and the window rendersBootstrap.dll(DDLM path)Bootstrap.dllscripts/gui-smoke.ps1stops atMissing header Display name ▲on the 0.1.4 build as well. That assertion predates the sort-glyph change, and this PR does not touch it.