Update: Build instructions for just
This commit is contained in:
24
README.md
24
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)
|
||||
|
||||
Reference in New Issue
Block a user