NavicatCrack/doc/how-to-build.zh-CN.md

1.6 KiB

navicat-keygen for windows - 如何编译?

1. 前提条件

  1. 请确保你有 Visual Studio 2022 或者更高版本。因为这是一个VS2022项目。

  2. 请确保你安装了 vcpkg 以及下面几个库:

    • fmt:x64-windows-static
    • fmt:x86-windows-static
    • openssl:x64-windows-static
    • openssl:x86-windows-static
    • rapidjson:x64-windows-static
    • rapidjson:x86-windows-static
    • keystone:x64-windows-static
    • keystone:x86-windows-static
    • unicorn:x64-windows-static
    • unicorn:x86-windows-static

    你可以通过下面的命令来安装它们:

    $ vcpkg install fmt:x64-windows-static
    $ vcpkg install fmt:x86-windows-static
    $ vcpkg install openssl:x64-windows-static
    $ vcpkg install openssl:x86-windows-static
    $ vcpkg install rapidjson:x64-windows-static
    $ vcpkg install rapidjson:x86-windows-static
    $ vcpkg install keystone:x64-windows-static
    $ vcpkg install keystone:x86-windows-static
    $ vcpkg install unicorn:x64-windows-static
    $ vcpkg install unicorn:x86-windows-static
    
  3. 你的 vcpkg 已经和你的 Visual Studio 集成了,即你曾成功运行了:

    $ vcpkg integrate install
    

2. 编译

  1. Visual Studio 打开这个项目。

  2. 选择 Release 配置。

  3. 选择 Win32 来生成供32位Navicat使用的keygen/patcher。

    或者选择 x64 来生成供64位Navicat使用的keygen/patcher。

  4. 选择 生成 > 生成解决方案

生成完成后,你会在 bin/ 文件夹下看到编译后的keygen/patcher。