diff --git a/README.md b/README.md index a6a8253..6ed9aad 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,17 @@ cd d2mcpp d2x checker ``` +> On Windows, `d2x checker` requires [xmake](https://xmake.io/#/getting_started) and a GCC toolchain (Mingw-w64). Install both first: +> +> ``` +> winget install xmake # or: scoop install xmake +> winget install MSYS2.MSYS2 # then in MSYS2: pacman -S mingw-w64-x86_64-gcc +> ``` +> +> Then configure xmake to use the GCC toolchain: `xmake f --toolchain=mingw` + +**👉 [more details...] + **👉 [more details...](https://mcpp-community.github.io/d2mcpp/base/chapter_1.html)** ## Community diff --git a/README.zh.md b/README.zh.md index c88aede..a5fccbe 100644 --- a/README.zh.md +++ b/README.zh.md @@ -73,6 +73,17 @@ cd d2mcpp d2x checker ``` +> Windows 上 `d2x checker` 依赖 [xmake](https://xmake.io/#/getting_started) 和 GCC 工具链 (Mingw-w64),需先安装两者: +> +> ``` +> winget install xmake # 或: scoop install xmake +> winget install MSYS2.MSYS2 # 然后在 MSYS2 中: pacman -S mingw-w64-x86_64-gcc +> ``` +> +> 然后配置 xmake 使用 GCC 工具链: `xmake f --toolchain=mingw` + +**👉 [更多细节...] + **👉 [更多细节...](https://mcpp-community.github.io/d2mcpp/base/chapter_1.html)** ## 社区 diff --git a/book/src/base/chapter_1.md b/book/src/base/chapter_1.md index fabfeb8..d458ed7 100644 --- a/book/src/base/chapter_1.md +++ b/book/src/base/chapter_1.md @@ -38,8 +38,18 @@ Invoke-Expression (Invoke-Webrequest 'https://raw.githubusercontent.com/openxlin ```bash d2x install d2mcpp +cd d2mcpp ``` +> Windows 上需额外安装 [xmake](https://xmake.io/#/getting_started) 和 Mingw-w64 工具链: +> +> ``` +> winget install xmake # 或: scoop install xmake +> winget install MSYS2.MSYS2 # 然后在 MSYS2 中: pacman -S mingw-w64-x86_64-gcc +> ``` +> +> 然后配置 xmake 使用 GCC 工具链: `xmake f --toolchain=mingw` + ### 本地电子书 > 可以在项目目录执行`d2x book`命令, 打开本地文档(包含使用说明和电子书)