From 49209b47b2c0b27a27c7ce815cd18e691372c762 Mon Sep 17 00:00:00 2001 From: bitcookies Date: Sun, 5 Apr 2026 22:24:41 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=98=20Usage=20Summary=20Details?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 15 +++++++++++---- README.zh-CN.md | 13 ++++++++++++- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9f2ed76..830cff2 100644 --- a/README.md +++ b/README.md @@ -192,6 +192,7 @@ Extract `rarreg_file.zip` to get `rarreg.7z`, unzip it with the password to get
Click to expand + If you don't want to compile it yourself, you can also go to the [release](https://github.com/bitcookies/winrar-keygen/releases/) page to get `winrar-keygen.exe`. ### 6.1 Prerequisites @@ -221,14 +222,11 @@ If you don't want to compile it yourself, you can also go to the [release](https ```shell $ vcpkg integrate install ``` - ### 6.2 Build 1. Open this project in **Visual Studio**. - 2. Select **Release** configuration. - 3. Select **Build > Build Solution**. You will see executable files in `bin/` directory. @@ -315,6 +313,9 @@ Generate an ASCII-encoded license and output it only to the console. ## 7. Use GUI +
+Click to expand + If you are using Windows 10 or 11, you can use the GUI application, which is built using .NET 8 WPF and Fluent Design (WPF UI) and supports both `x64` and `ARM 64` architectures. You can obtain the project from the [gui](https://github.com/bitcookies/winrar-keygen/tree/gui) branch and build the GUI application yourself. For more detailed information, please refer to the [README](https://github.com/bitcookies/winrar-keygen/blob/gui/README.md) in that branch. @@ -323,8 +324,13 @@ You can obtain the project from the [gui](https://github.com/bitcookies/winrar-k ![GUI](assets/gui-dark.png#gh-dark-mode-only) +
+ ## 8. Build with CMake +
+Click to expand + For Linux or macOS users, you can use `build.yml` on the Actions page to build automatically, or you can compile it manually. ### 8.1 Linux (Ubuntu/Debian) @@ -360,6 +366,8 @@ cmake --build . --config Release The output is always `build/winrar-keygen`, and the version number is controlled by `APP_VERSION` in `CMakeLists.txt`. +
+ ## 9. Common Errors ### 9.1 Keygen Errors @@ -378,7 +386,6 @@ If you encounter an error while using `ascii` encoding, it is because you are us If you encounter an error while using `ansi` encoding, it is because the character encoding is not supported by the current Windows system. The system platform for GitHub Actions is `windows-2022-english` (ANSI code page 1252), and any non-ASCII characters will cause the process to fail. - ## 10. Contributing ### 10.1 Suggestion diff --git a/README.zh-CN.md b/README.zh-CN.md index 11c4ae9..d6eac06 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -22,7 +22,7 @@ WinRAR 是一款用于管理压缩包文件的共享软件。其算法由作者 WinRAR 不是免费软件。如果你想使用它,你应当向 [**RARLAB**](https://www.rarlab.com/) 付费,然后获得一个授权文件 `rarreg.key`。 -这份 repo 将会告诉你 `rarreg.key` 是如何生成的。 +这份 repo 将会告诉你 `"rarreg.key"` 是如何生成的。 ## 2. "rarreg.key"是如何生成的? @@ -192,6 +192,7 @@ WinRAR license 有 `rarreg.key` 和 `rarkey.rar` 两种类型,它们仅在导
点击展开 + 如果你不想自行编译,也可以到 [Release](https://github.com/bitcookies/winrar-keygen/releases/) 页面获取对应版本的 `winrar-keygen.exe`。 ### 6.1 前提条件 @@ -310,6 +311,9 @@ dd4ab952600ba16a99236d910bfa995d5f60651ec451f462511507 ## 7. 使用 GUI +
+Click to expand + 如果你正在使用 Windows 10 / 11,你可以使用 GUI 程序,它基于 .NET 8 WPF 和 Fluent Design (WPF UI) 构建,提供 `x64` 和 `ARM 64` 两种架构支持。 你可以在 [gui](https://github.com/bitcookies/winrar-keygen/tree/gui) 分支中获取项目,并自行构建 GUI 程序。更详细的信息请查看分支 [README](https://github.com/bitcookies/winrar-keygen/blob/gui/README.zh-CN.md)。 @@ -318,8 +322,13 @@ dd4ab952600ba16a99236d910bfa995d5f60651ec451f462511507 ![GUI](assets/gui-dark.png#gh-dark-mode-only) +
+ ## 8. 通过 Cmake 编译使用 +
+Click to expand + 对于 Linux 或 macOS 用户,你可以在 Actions 页面用 `build.yml` 自动构建,也可以自行编译。 ### 8.1 Linux (Ubuntu/Debian) @@ -355,6 +364,8 @@ cmake --build . --config Release 产物都是 `build/winrar-keygen`,版本号由 `CMakeLists.txt` 中的 `APP_VERSION` 控制。 +
+ ## 9. 常见错误 ### 9.1 Keygen 错误