Skip to content

Commit fce20f4

Browse files
committed
Merge branch 'release/10.7.1'
2 parents 7f2ec7a + 30948f6 commit fce20f4

File tree

7 files changed

+71
-13
lines changed

7 files changed

+71
-13
lines changed

.github/workflows/cmake.yml

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212
BUILD_CONFIGURATION: Release
1313

1414
jobs:
15-
build:
15+
build-x86_64:
1616
runs-on: windows-2019
1717

1818
steps:
@@ -30,6 +30,40 @@ jobs:
3030
- name: Fetch all tags
3131
run: git fetch --tags --prune --unshallow --force
3232

33+
- name: Configure CMake
34+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
35+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
36+
run: cmake -Bbuild -DCMAKE_BUILD_TYPE=${{env.BUILD_CONFIGURATION}}
37+
38+
- name: Build nim-demo
39+
# Build your program with the given configuration
40+
run: cmake --build build --config ${{env.BUILD_CONFIGURATION}}
41+
42+
- name: Build nim-demo installer
43+
run: cmake --build build --config ${{env.BUILD_CONFIGURATION}} --target installer
44+
45+
- uses: actions/upload-artifact@v4
46+
with:
47+
name: PC_Demo_Setup_x64
48+
path: bin/NIM_Demo_Setup*.exe
49+
build-x86:
50+
runs-on: windows-2019
51+
52+
steps:
53+
- uses: actions/checkout@v2
54+
55+
- name: Add MSBuild to PATH
56+
uses: microsoft/setup-msbuild@v1
57+
58+
- name: Install Conan
59+
id: conan
60+
uses: turtlebrowser/get-conan@main
61+
with:
62+
version: 1.65.0
63+
64+
- name: Fetch all tags
65+
run: git fetch --tags --prune --unshallow --force
66+
3367
- name: Configure CMake
3468
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
3569
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
@@ -44,5 +78,5 @@ jobs:
4478

4579
- uses: actions/upload-artifact@v4
4680
with:
47-
name: PC_Demo_Setup
81+
name: PC_Demo_Setup_Win32
4882
path: bin/NIM_Demo_Setup*.exe

README.md

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
网易云信 PC IM Demo 是基于[网易云信 PC SDK](https://yunxin.163.com/im-sdk-demo) 制作的即时通讯示例程序,UI 库使用 [NIM Duilib](https://github.com/netease-im/NIM_Duilib_Framework) 制作
44

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)
76

87
## 预览
98

@@ -29,12 +28,24 @@ git clone https://github.com/netease-im/NIM_PC_Demo.git --depth 10
2928

3029
执行如下命令初始化 Debug 调试版本的项目:
3130

32-
> 首次初始化 Debug 或 Release 工程时会自动下载并编译依赖的三方库代码,这个过程可能相对较慢,请耐心等待。当您再次编译时,将不再重复下载和编译三方库代码而是使用上一次编译后的产物。
31+
> [!NOTE]
32+
> 首次初始化 Debug 或 Release 工程时会自动下载并编译依赖的三方库代码,这个过程可能相对较慢,请耐心等待。当您再次编译时,将不再重复下载和编译三方库代码而是使用上一次编译后的产物。
3333
3434
```bash
35+
# 生成 64 位 Debug 工程,如果您未指定 Visual Studio 版本将默认使用本机安装的最新版本
36+
cmake -Bbuild -Ax64 -DCMAKE_BUILD_TYPE=Debug
37+
38+
# 生成 32 位 Debug 工程
3539
cmake -Bbuild -AWin32 -DCMAKE_BUILD_TYPE=Debug
3640
```
3741

42+
> [!TIP]
43+
> Visual Studio 2017 以下版本工具链不支持使用 cmake -A 参数来指定目标产物架构,您可以使用如下命令分别生成 32 位和 64 位的工程
44+
>
45+
> `cmake -Bbuild -G "Visual Studio 15 2017" -DCMAKE_BUILD_TYPE=Debug`
46+
>
47+
> `cmake -Bbuild -G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=Debug`
48+
3849
您可以通过打开 build 目录下的 `nim_win_demo.sln` 来进行调试或通过 CMake 命令直接编译:
3950

4051
```bash
@@ -46,13 +57,20 @@ cmake --build build --config Debug
4657
如您需要编译 Release 版本,则将上面的命令中 Debug 修改为 Release 即可:
4758

4859
```bash
60+
# 生成 64 位 Release 工程,
61+
cmake -Bbuild -Ax64 -DCMAKE_BUILD_TYPE=Release
62+
cmake --build build --config Release
63+
64+
# 生成 32 位 Release 工程,
4965
cmake -Bbuild -AWin32 -DCMAKE_BUILD_TYPE=Release
5066
cmake --build build --config Release
5167
```
5268

53-
> 所有产物均生成在项目根目录下的 bin 文件夹中,项目编译完成后您可以直接从 bin 目录下运行 nim_demo.exe 来启动 Demo
69+
> [!TIP]
70+
> 所有产物均生成在项目根目录下的 bin 文件夹中,项目编译完成后您可以直接从 bin 目录下运行 nim_demo.exe 来启动 Demo
5471
55-
> 需要注意的是,由于 Debug 和 Release 版本的依赖库文件都会拷贝到 bin 目录下,因此在切换 Debug 和 Release 版本时请使用 git clean -xdf 命令清理 bin 目录下的临时文件
72+
> [!IMPORTANT]
73+
> 需要注意的是,由于 Debug 和 Release 版本的依赖库文件都会拷贝到 bin 目录下,因此在切换 Debug 和 Release 版本时请使用 `git clean -xdf` 命令清理 bin 目录下的临时文件
5674
5775
### 制作安装包
5876

conanfile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ class NebaseConan(ConanFile):
2424
exports_sources = "*", "!build"
2525

2626
def requirements(self):
27-
self.requires("libjpeg/9e")
27+
self.requires("libjpeg/9c")
2828
self.requires("openssl/3.3.2")
2929
self.requires("jsoncpp/1.9.5")
3030
self.requires("libuv/1.49.0")
3131
self.requires("libyuv/1892")
32-
self.requires("sqlite3/3.46.1")
32+
self.requires("sqlite3/3.36.0")
3333
self.requires("tinyxml/2.6.2")
34-
self.requires("nim/10.5.0@yunxin/stable")
34+
self.requires("nim/10.7.1@yunxin/stable")
3535
self.requires("nertc/4.1.1@yunxin/stable")
3636
self.requires("libcef/3.2623.1401@yunxin/stable")
37-
self.requires("ne_live_player/1.1.1@yunxin/stable")
37+
self.requires("ne_live_player/1.6.9@yunxin/stable")
3838
self.requires("image_ole/4.2.0@yunxin/stable")
3939
self.requires("ne_transfer/0.1.0@yunxin/stable")
4040

tool_kits/install/utils/7zDec.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
#define EXTERN_C_END
2121
#endif
2222
#endif
23+
#if defined(_MSC_VER) && (defined(_M_X64) || defined(_M_AMD64) || defined(_M_IX86))
24+
#include <intrin.h>
25+
#endif
2326

2427
EXTERN_C_BEGIN
2528

tool_kits/install/window/setup_wnd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class SetupForm : public ui::WindowImplBase
2626
virtual UINT GetClassStyle() const override;
2727
virtual void OnFinalMessage(HWND hWnd) override;
2828
virtual void InitWindow() override;
29-
virtual HRESULT OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) override;
29+
virtual LRESULT OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) override;
3030
virtual bool Notify(ui::EventArgs* msg);
3131

3232
private:

tool_kits/uninstall/utils/7zDec.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
#define EXTERN_C_END
2020
#endif
2121
#endif
22+
#if defined(_MSC_VER) && (defined(_M_X64) || defined(_M_AMD64) || defined(_M_IX86))
23+
#include <intrin.h>
24+
#endif
2225

2326
EXTERN_C_BEGIN
2427

tool_kits/uninstall/window/setup_wnd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class SetupForm : public ui::WindowImplBase
2626
virtual UINT GetClassStyle() const override;
2727
virtual void OnFinalMessage(HWND hWnd) override;
2828
virtual void InitWindow() override;
29-
virtual HRESULT OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) override;
29+
virtual LRESULT OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) override;
3030
virtual bool Notify(ui::EventArgs* msg);
3131

3232
private:

0 commit comments

Comments
 (0)