Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Commit a500762

Browse files
committed
更新文档
1 parent 82b0d3d commit a500762

15 files changed

+32
-17
lines changed

README.md

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,29 @@
2424

2525
### 1. 快速尝试
2626

27-
将本仓库克隆到合适的位置
27+
1. 使用 Visual Studio
2828

29-
```powershell
30-
git clone https://github.com/cyanray/mirai-cpp.git
31-
```
32-
33-
如果一切顺利,你已经将本仓库的所有内容克隆到了 mirai-cpp 文件夹里。
29+
完整克隆/下载本仓库。
3430

3531
如图所示,使用 Visual Studio 2019 直接打开这个文件夹。
3632

37-
![使用 VS 直接打开 mirai-cpp 文件夹](./doc/pic/vs.png)
33+
![使用 VS 直接打开 mirai-cpp 文件夹](./doc/pic/vs_1.png)
34+
35+
如果一切顺利,你可以直接运行我写好的示例,或者进行修改编写自己的机器人。
36+
37+
![开始运行 examples](./doc/pic/vs_2.png)
38+
39+
2. 使用 Visual Studio Code
40+
41+
完整克隆/下载本仓库。
42+
43+
使用 VS Code 直接打开这个文件夹。
3844

39-
如果一切顺利,你可以直接运行我写好的示例
45+
安装 CMake Tools 扩展
4046

41-
在我的示例的基础上进行修改,即可编写你自己的插件。
47+
直接开始调试:
4248

43-
![开始运行 examples](./doc/pic/vs3.png)
49+
![vsc 开始调试](./doc/pic/vsc.png)
4450

4551

4652
### 3. 其他使用方式
@@ -58,18 +64,17 @@ git clone https://github.com/cyanray/mirai-cpp.git
5864

5965
打开在 “快速尝试” 中用到的项目。按照如图所示步骤,创建一个针对 WSL 平台的配置。因为我的 WSL 安装了 GCC 编译器,所以这里选择 **WSL-GCC-Releas**
6066

61-
![创建WSL-GCC平台配置1](./doc/pic/vs_configure_linux_project.png)
67+
![创建WSL-GCC平台配置1](./doc/pic/vs_3.png)
68+
69+
![创建WSL-GCC平台配置2](./doc/pic/vs_configure_linux_project.png)
6270

6371
如果一切顺利,等待 CMake 缓存生成成功后,即可编译出 Linux 平台的可执行文件。
6472

65-
## 常见问题
73+
74+
#### (2) 使用 CMake-GUI 编译
6675

6776
未完待续……
6877

6978
## 代码风格
7079

7180
本项目的代码使用的是我自己喜欢的代码风格,如果你有更好的建议(比如修改为 Google-Style),欢迎提出 issues 或 pull request。
72-
73-
## 其他
74-
75-
未完待续……

doc/pic/env.png

-7.99 KB
Binary file not shown.
-554 KB
Binary file not shown.

doc/pic/install_vcpkg_on_linux.png

-573 KB
Binary file not shown.
-945 KB
Binary file not shown.

doc/pic/install_vs_eng_pkg.png

-58.9 KB
Binary file not shown.

doc/pic/pic_1.png

-52.2 KB
Binary file not shown.

doc/pic/vs2.png

-72.7 KB
Binary file not shown.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)