File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change
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 ` .
You can’t perform that action at this time.
0 commit comments