# wh Terminal WhatsApp client (ratatui) with per-chat and global AI autoreply via an OpenAI-compatible API. ## Build ```sh cargo build --release ``` ## Cross-compile: Linux x86_64 static (musl) Built from Windows with cargo-zigbuild. Zig provides the C cross-compiler and linker for the bundled C code (SQLite, aws-lc-sys, ring). One-time prerequisites: ``` rustup target add x86_64-unknown-linux-musl winget install -e --id zig.zig # or: pip install ziglang cargo install --locked cargo-zigbuild ``` Build: ``` cargo zigbuild --release --target x86_64-unknown-linux-musl ``` Output: `target/x86_64-unknown-linux-musl/release/wh` Verify on Linux: ```sh file wh # ELF 64-bit x86-64, statically linked chmod +x wh && ./wh ``` ### Data directory On Linux, config and databases live in `~/.config/wh/` (`config.toml`, `session.db`, `history.db`); on Windows in `%APPDATA%\wh`. Copy `session.db` from Windows to reuse the linked session instead of scanning the QR again.