Skip to content

Commit d26cb0f

Browse files
committed
docs: 改进 DEVELOPMENT.md
1.Wails版本,使用 v2.5 时编译失败,并且`wind_setting\go.mod`中使用了v2.12,因此在文档中写明次要版本 2.Go版本,`wind_setting\go.mod`中使用了Go1.26, 并且Go1.25 @latest下载Wails时会下到旧版本导致1.的问题 3.CMake,补充关于MSVC与CMake的说明 4.PowerShell版本,`installer\uninstall.ps1`使用了PS 7引入的新运算符`?.`,因此在文档中写明PS版本 5..NET版本,wind_portable使用了NET但文档中未写明
1 parent 4f04343 commit d26cb0f

1 file changed

Lines changed: 43 additions & 4 deletions

File tree

docs/DEVELOPMENT.md

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,51 @@
55
## 系统要求
66

77
- Windows 10 或 Windows 11
8-
- Go 1.24+
8+
- Go 1.26+
99
- Visual Studio 2017 或更高版本(含 C++ 桌面开发工具)
10-
- CMake 3.15+
11-
- Wails v2 CLI
10+
- CMake 3.15+(参见[CMake](#CMake)
11+
- Wails v2.12 CLI
1212
- Node.js + pnpm(前端构建)
13-
- PowerShell(构建脚本)
13+
- PowerShell 7+(构建脚本)
14+
- .NET SDK 10+ (Portable版本)
15+
16+
### CMake
17+
18+
通过 Visual Studio 2017及以上版本下载 的C++桌面端工作负载,包含CMake和其他必要的C++工具链。这个负载中的 CMake 为微软定制版,默认查找 VS 生成器与编译器,区别于 CMake 官方版本默认使用 NMake+GCC。请注意操作系统的环境变量PATH,靠前的CMake路径会被优先使用,可在终端使用以下命令确认CMake版本
19+
20+
```
21+
cmake --version
22+
```
23+
24+
示例输出:
25+
26+
```
27+
cmake version 4.3.1-msvc1
28+
29+
CMake suite maintained and supported by Kitware (kitware.com/cmake).
30+
```
31+
32+
使用以下命令确认默认生成器与可用生成器:
33+
34+
```
35+
cmake -G
36+
```
37+
38+
以下为示例输出,开头带星号的是默认生成器。由于Visual Studio 内的终端会自动设置终端内的环境变量,因此VS终端的输出可能与其他终端不同(例如 VS Code终端或者在文件资源管理器打开的终端):
39+
40+
```
41+
Generators
42+
43+
*Visual Studio 17 2022 = Generates Visual Studio 2022 project files.
44+
Visual Studio 16 2019 = Generates Visual Studio 2019 project files.
45+
Visual Studio 15 2017 = Generates Visual Studio 2017 project files.
46+
Ninja = Generates build.ninja files.
47+
Unix Makefiles = Generates standard UNIX makefiles.
48+
```
49+
50+
### Power Shell
51+
52+
Windows内置的 PowerShell 通常是 Power Shell 5,请前往[官网](https://learn.microsoft.com/en-us/powershell/scripting/install/install-powershell-on-windows?view=powershell-7.6#msi)下载 Power Shell 7
1453

1554
## 项目结构
1655

0 commit comments

Comments
 (0)