README: hook feature IS enabled (cross-compiled, embedded); fix build notes

This commit is contained in:
2026-10-06 18:39:27 +08:00
parent 6bd5e4f713
commit ea618c1462
+14 -4
View File
@@ -33,14 +33,24 @@ mint --version
## Build notes ## Build notes
Built from `trumank/mint` main (v0.2.10) with: Built from `trumank/mint` main (v0.2.10) with the **default `hook` feature enabled**:
```bash ```bash
cargo +nightly-2026-04-24 build --package mint --no-default-features --release # build-time deps (NOT needed at runtime)
apt install -y mingw-w64
rustup target add x86_64-pc-windows-gnu --toolchain nightly-2026-04-24
cargo +nightly-2026-04-24 build --package mint --release
``` ```
The default `hook` feature is a Windows game-injection cdylib (`x86_64-pc-windows-gnu`) and is The Linux MINT executable is built with the default `hook` feature enabled.
intentionally excluded on Linux. Binary is stripped. The hook itself is cross-compiled for `x86_64-pc-windows-gnu` because
Deep Rock Galactic runs as a Windows application under Proton.
MinGW-w64 is therefore required **at build time only, not at runtime** —
the hook DLL is embedded into the Linux binary via Cargo artifact dependency
(`include_bytes!(env!("CARGO_CDYLIB_FILE_HOOK_hook"))`) and written by MINT
itself to `FSD/Binaries/Win64/x3daudio1_7.dll` when installing mods.
Binary is stripped.
## Files ## Files