Skip to content

Commit c5c645e

Browse files
committed
add readme for thunk-cli
1 parent 645f7a2 commit c5c645e

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

thunk-cli/README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Thunk-cli
2+
3+
Thunk the Rust program to support old Windows platforms!
4+
5+
## Preparation
6+
7+
Download VC-LTL5 and YY-Thunks Binary, unzip them and add environment variable:
8+
9+
| Binary | Environment Variable |
10+
| --- | ---|
11+
| VC-LTL-XXX-Binary.7z | VC_LTL |
12+
| YY-Thunks-XXX-Binary.zip | YY_THUNKS |
13+
14+
Then add Thunk to run path.
15+
16+
17+
## Install Thunk
18+
19+
```
20+
cargo install thunk-cli
21+
```
22+
23+
## Sample 1. Build for Windows XP
24+
25+
```
26+
cargo new build_for_xp
27+
cd build_for_xp
28+
thunk --os xp --arch x86 -- --release
29+
```
30+
31+
## Sample 2. Build a shared library for Windows XP
32+
33+
```
34+
cargo new build_for_xp
35+
cd build_for_xp
36+
thunk --os xp --arch x86 --lib -- --release
37+
```
38+
39+
## Show help
40+
41+
Use the following command to show help:
42+
43+
```
44+
thunk.exe --help
45+
```
46+
47+
Note: In order to distinguish the program build by Thunk, Thunk builds the release in `./target/*_build`.

0 commit comments

Comments
 (0)