From 5a23175a83d0f5685d01e986c840f388749b88ab Mon Sep 17 00:00:00 2001 From: DaZuo0122 <1085701449@qq.com> Date: Mon, 2 Feb 2026 13:00:19 +0800 Subject: [PATCH] Update: Build instructions for just --- README.md | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1b8e90d..2498337 100644 --- a/README.md +++ b/README.md @@ -85,16 +85,28 @@ Lookup order: 2) `data/` next to the CLI binary 3) `data/` in the current working directory -## Build and package +## Build + +### Only build binary ```bash -cmake -S . -B build -cmake --build build -cmake --build build --target package +cargo build --release ``` -Install: +### Build and package +1. Prepare GeoLite2 databases (required `GeoLite2-ASN.mmdb` and `GeoLite2-Country.mmdb` ): + ```bash -cmake --build build --target install +# Place your mmdb files under data/ +mkdir data +``` + +> **Note**: This step requires `python3` and `just`. + +2. Use `just` to run build and package command (Note: you don't need bash environment on windows): + +```bash +# You will find package under dist/, zip file on windows, tar.gz file on linux +just release ``` ## HTTP/3 (experimental)