Thunk uses VC-LTL5 and YY-Thunks to build programs that support even Windows XP. So, how does it work?
- Add VC-LTL to the library search path
- Use YY-Thunks to remedy API that old platform that does not exist
Note: Thunk does not guarantee the compiled program work or work accurately on old platforms. USE AT YOUR OWN RISK!
Download VC-LTL5 and YY-Thunks Binary, unzip them and add environment variable:
Binary | Environment Variable |
---|---|
VC-LTL-XXX-Binary.7z | VC_LTL |
YY-Thunks-XXX-Binary.zip | YY_THUNKS |
Then add Thunk to run path.
You can just install with scoop:
scoop bucket add felixmaker 'https://github.com/felixmaker/scoop-felixmaker'
scoop install felixmaker/thunk
cargo new build_for_xp
cd build_for_xp
thunk --os xp --arch x86 -- --release
cargo new build_for_xp
cd build_for_xp
thunk --os xp --arch x86 --lib -- --release
Use the following command to show help:
thunk.exe --help
Note: In order to distinguish the program build by Thunk, Thunk builds the release in ./target/*_build
.
Step1: Ensure command line tools curl
and 7z
could be found in PATH
. (Needed if VC_LTL
and YY_THUNKS
not found in environment variables)
Step2: Add thunk as a build dependency:
cargo add thunk-rs --build
Step3: Create a build script build.rs
:
fn main() {
thunk::thunk();
}
Then, your program should run on Windows XP. See thunk-rs.
- Windows XP x86
- Windows XP x64
- Windows Vista x86
- Windows Vista x64
- Windows 7 x86 (v0.3.2)
- Windows 7 x64 (v0.3.2)
- Windows 8 x86 (v0.3.2)
- Windows 8 x64 (v0.3.2)
- Windows 10 x86 (v0.3.2)
- Windows 10 x64 (v0.3.2)
- Only VC-LTL
- Scoop bucket