Update: Build instructions for just

This commit is contained in:
DaZuo0122
2026-02-02 13:00:19 +08:00
parent 57492ab654
commit 5a23175a83

View File

@@ -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)