This repository was archived by the owner on May 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Build
Yuchen Ren edited this page Mar 7, 2023
·
9 revisions
此页面适合开发人员 / 贡献者阅读。
-
Windows 10 / 11
-
Visual Studio 2022
-
PowerShell
-
vcpkg
vcpkg 依赖库安装流程如下:
vcpkg install jsoncpp:${arch}-windows-static openssl:${arch}-windows-static spdlog:${arch}-windows-static
vcpkg integrate install
其中 ${arch}
为构建的程序架构,可为 x64
/ x86
/ ARM
/ ARM64
。
打开项目根目录下的 WCH.sln
文件进入 Visual Studio 后,选择工具顶栏的 Release
/ Debug
和 x64
/ x86
/ ARM
/ ARM64
选项,再点击右侧的 开始执行 (不调试)
开始构建。
也可使用 scripts/build.ps1
自动化构建,具体方法见 脚本。
构建完毕会自动运行可执行文件,之后还可直接双击运行构建目录中的可执行文件(程序运行不受运行目录影响,但程序所在目录下必须有所需的依赖文件)。
在相应位置标记断点后选择 Visual Studio 工具顶栏的调试器即可。
若在构建过程中出现 PowerShell 脚本返回值不为零的情况,请尝试以管理员身份运行 PowerShell 并执行下列命令:
Set-ExecutionPolicy RemoteSigned
若有任何问题欢迎与项目维护人员联系!
Class Tools Develop Team 现已建立官方 QQ 讨论群。
若您想加入我们团队的官方 QQ 讨论群,请访问 加入群聊。