diff --git a/README.md b/README.md new file mode 100644 index 0000000..87338ce --- /dev/null +++ b/README.md @@ -0,0 +1,33 @@ +# navicat-keygen for linux + +[中文版README](README.zh-CN.md) + +This repository will tell you how Navicat offline activation works. + +Previous code is archived in [`linux-archived`](https://notabug.org/doublesine/navicat-keygen/src/linux-archived) branch for the reason that Navicat has come to version 16.x.x which I think should be a milestone and I decide to obsolete previous code and rewrite new one. + +When you git-clone this repo, please add `--single-branch` flag so that archived branches won't be cloned to your computer, which saves your time and disk. + +```console +$ git clone -b linux --single-branch https://notabug.org/doublesine/navicat-keygen.git +``` + +## 1. How does it work? + +see [here](doc/how-does-it-work.md). (WAIT TO BE DONE) + +## 2. How to build? + +see [here](doc/how-to-build.md). + +## 3. How to use? + +see [here](doc/how-to-use.md). (WAIT TO BE DONE) + +## 4. Contributor + +* Deltafox79 + +* dragonflylee + +* zenuo \ No newline at end of file diff --git a/README.zh-CN.md b/README.zh-CN.md new file mode 100644 index 0000000..58a2a1e --- /dev/null +++ b/README.zh-CN.md @@ -0,0 +1,31 @@ +# navicat-keygen for linux + +这份repo将会告诉你Navicat是怎么完成离线激活的。 + +归档的代码位于 [`linux-archived`](https://notabug.org/doublesine/navicat-keygen/src/linux-archived) 分支。归档原因:Navicat进入16.x.x版本,本项目打算进行重构。 + +当你clone该仓库的时候,请使用 `--single-branch` 选项,以此避免clone到已被归档的分支、以及节省你的时间和磁盘空间。 + +```console +$ git clone -b linux --single-branch https://notabug.org/doublesine/navicat-keygen.git +``` + +## 1. 注册机是怎么工作的? + +见[这里](doc/how-does-it-work.zh-CN.md)。(待完成) + +## 2. 如何编译? + +见[这里](doc/how-to-build.zh-CN.md)。 + +## 3. 如何使用这个注册机? + +见[这里](doc/how-to-use.zh-CN.md)。(待完成) + +## 4. 贡献者 + +* Deltafox79 + +* dragonflylee + +* zenuo diff --git a/doc/how-to-build.md b/doc/how-to-build.md new file mode 100644 index 0000000..ea7e8c1 --- /dev/null +++ b/doc/how-to-build.md @@ -0,0 +1,37 @@ +# navicat-keygen for linux - How to build? + +[中文版](how-to-build.zh-CN.md) + +## 1. Prerequisites + +1. Install latest `CMake`: + + ```bash + $ sudo apt-get install cmake + ``` + +2. Install `fmt`, `OpenSSL` and `rapidjson`: + + ```bash + $ sudo apt-get install libfmt-dev libssl-dev rapidjson-dev + ``` + +## 2. Build + +1. Clone: + + ```bash + $ git clone -b linux --single-branch https://notabug.org/doublesine/navicat-keygen.git + $ cd navicat-keygen + ``` + +2. Build: + + ```bash + $ mkdir build + $ cd build + $ cmake -DCMAKE_BUILD_TYPE=Release .. + $ cmake --build . -- -j4 + ``` + + Then you will see two executable files, `navicat-keygen` and `navicat-patcher`, in `build` directory. diff --git a/doc/how-to-build.zh-CN.md b/doc/how-to-build.zh-CN.md new file mode 100644 index 0000000..714d6ca --- /dev/null +++ b/doc/how-to-build.zh-CN.md @@ -0,0 +1,35 @@ +# navicat-keygen for linux - 如何编译? + +## 1. 前提条件 + +1. 安装最新的 `CMake`: + + ```bash + $ sudo apt-get install cmake + ``` + +2. 安装 `fmt`、`OpenSSL` 和 `rapidjson`: + + ```bash + $ sudo apt-get install libfmt-dev libssl-dev rapidjson-dev + ``` + +## 2. 编译 + +1. clone仓库: + + ```bash + $ git clone -b linux --single-branch https://notabug.org/doublesine/navicat-keygen.git + $ cd navicat-keygen + ``` + +2. 编译: + + ```bash + $ mkdir build + $ cd build + $ cmake -DCMAKE_BUILD_TYPE=Release .. + $ cmake --build . -- -j4 + ``` + + 编译完后你会在build文件夹里看到两个可执行文件 `navicat-keygen` 和 `navicat-patcher`。