* chore: 删除不需要的 const 说明符 * chore: 优化 Updater 分组 * feat: 添加 TouchHelper 项目 * feat: TouchHelper 需要 UIAccess 权限 * feat: 缩放配置页面改名为缩放模式页面 * feat: 添加自签名证书 * chore: 发布时为 TouchHelper 签名 * feat: 实现 TouchHelper 的功能 * feat: 高级选项移到主页 * feat: 实现安装证书 * perf: 安装证书前检查是否已经安装 * feat: 在单独的文件中记录 TouchHelper 的版本号 * feat: 实现 UI 功能 (1/2) * feat: 实现 UI 功能 (2/2) * fix: 修复有时更改触控支持选项时崩溃的问题 * feat: 给触控选项添加说明 * feat: 设置证书友好名称 * feat: 记录 MagSetInputTransform 调用结果 * docs: 添加触控支持说明 * docs: 添加英语文档 * docs: 更新编译文档 * refactor: 使用 ChangeWindowMessageFilterEx 替换 ChangeWindowMessageFilter * UI: 优化触控支持 UI * feat: 缩放前自动修复触控支持 * docs: 更新触控支持文档 * feat: 管理员身份下不展示提示 * feat: 了解更多按钮指向文档 * feat: 尝试解决黑边问题 * feat: 解决黑边的触控 * chore: 优化注释 * fix: 优化错误处理 * refactor
1.6 KiB
Prerequisites
In order to compile Magpie, you need to first install:
-
The latest version of Visual Studio 2022. You need to install both "Desktop development with C++" and "Universal Windows Platform development" workloads and Windows SDK build 22621 or newer.
-
You can also use the built-in CMake of Visual Studio, which is located at
%ProgramFiles%\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin. -
Python 3.11+
-
pip install conanMake sure that the above dependencies have been added to the system path, and use the following commands to check:
cmake --version python --version conan --version
Compiling
-
Clone the repo
git clone https://github.com/Blinue/Magpie -
Open the Magpie.sln in the root directory and build the solution.
Enabling Touch Support
To enable touch input support, TouchHelper.exe needs to be signed. While signing is automatically done in the CI pipeline, you can also manually sign it. Follow these steps:
- Create a self-signed certificate and export it as a pfx file.
- Replace the
CERT_FINGERPRINTconstant insrc/Magpie/TouchHelper.cppwith the SHA-1 hash (i.e., fingerprint) of your certificate. - Run the following command in the root directory of the repository:
python publish.py x64 unpackaged <pfx path> <pfx password>
This will compile Magpie and sign TouchHelper.exe. The compiled files will be located in publish\x64.