File tree 2 files changed +19
-7
lines changed
2 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 44
44
45
45
- uses : actions/upload-artifact@v4
46
46
with :
47
- name : PC_Demo_Setup
47
+ name : PC_Demo_Setup_x64
48
48
path : bin/NIM_Demo_Setup*.exe
49
49
build-x86 :
50
50
runs-on : windows-2019
78
78
79
79
- uses : actions/upload-artifact@v4
80
80
with :
81
- name : PC_Demo_Setup
81
+ name : PC_Demo_Setup_Win32
82
82
path : bin/NIM_Demo_Setup*.exe
Original file line number Diff line number Diff line change 2
2
3
3
网易云信 PC IM Demo 是基于[ 网易云信 PC SDK] ( https://yunxin.163.com/im-sdk-demo ) 制作的即时通讯示例程序,UI 库使用 [ NIM Duilib] ( https://github.com/netease-im/NIM_Duilib_Framework ) 制作
4
4
5
- ![ GitHub] ( https://img.shields.io/badge/license-MIT-green.svg )
6
- [ ![ Actions Status] ( https://github.com/netease-im/NIM_PC_Demo/workflows/MSBuild/badge.svg )] ( https://github.com/netease-im/NIM_PC_Demo/actions )
5
+ ![ GitHub] ( https://img.shields.io/badge/license-MIT-green.svg ) | [ ![ Actions Status] ( https://github.com/netease-im/NIM_PC_Demo/workflows/MSBuild/badge.svg )] ( https://github.com/netease-im/NIM_PC_Demo/actions )
7
6
8
7
## 预览
9
8
@@ -29,12 +28,23 @@ git clone https://github.com/netease-im/NIM_PC_Demo.git --depth 10
29
28
30
29
执行如下命令初始化 Debug 调试版本的项目:
31
30
32
- > 首次初始化 Debug 或 Release 工程时会自动下载并编译依赖的三方库代码,这个过程可能相对较慢,请耐心等待。当您再次编译时,将不再重复下载和编译三方库代码而是使用上一次编译后的产物。
31
+ > [ !NOTE]
32
+ > 首次初始化 Debug 或 Release 工程时会自动下载并编译依赖的三方库代码,这个过程可能相对较慢,请耐心等待。当您再次编译时,将不再重复下载和编译三方库代码而是使用上一次编译后的产物。
33
33
34
34
``` bash
35
+ # 生成 32 位 Debug 工程,如果您未指定 Visual Studio 版本将默认使用本机安装的最新版本
35
36
cmake -Bbuild -AWin32 -DCMAKE_BUILD_TYPE=Debug
37
+
38
+ # 生成 64 位 Debug 工程
39
+ cmake -Bbuild -Ax64 -DCMAKE_BUILD_TYPE=Debug
36
40
```
37
41
42
+ > [ !TIP]
43
+ > Visual Studio 2017 以下版本工具链不支持使用 cmake -A 参数来指定目标产物架构,您可以使用如下命令分别生成 32 位和 64 位的工程
44
+ >
45
+ > ` cmake -Bbuild -G "Visual Studio 15 2017" -DCMAKE_BUILD_TYPE=Debug `
46
+ > ` cmake -Bbuild -G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=Debug `
47
+
38
48
您可以通过打开 build 目录下的 ` nim_win_demo.sln ` 来进行调试或通过 CMake 命令直接编译:
39
49
40
50
``` bash
@@ -50,9 +60,11 @@ cmake -Bbuild -AWin32 -DCMAKE_BUILD_TYPE=Release
50
60
cmake --build build --config Release
51
61
```
52
62
53
- > 所有产物均生成在项目根目录下的 bin 文件夹中,项目编译完成后您可以直接从 bin 目录下运行 nim_demo.exe 来启动 Demo
63
+ > [ !TIP]
64
+ > 所有产物均生成在项目根目录下的 bin 文件夹中,项目编译完成后您可以直接从 bin 目录下运行 nim_demo.exe 来启动 Demo
54
65
55
- > 需要注意的是,由于 Debug 和 Release 版本的依赖库文件都会拷贝到 bin 目录下,因此在切换 Debug 和 Release 版本时请使用 git clean -xdf 命令清理 bin 目录下的临时文件
66
+ > [ !IMPORTANT]
67
+ > 需要注意的是,由于 Debug 和 Release 版本的依赖库文件都会拷贝到 bin 目录下,因此在切换 Debug 和 Release 版本时请使用 ` git clean -xdf ` 命令清理 bin 目录下的临时文件
56
68
57
69
### 制作安装包
58
70
You can’t perform that action at this time.
0 commit comments