CLI
Install
Download
Get the latest release from the Download page. There are two builds:
reseam-linux-x64for Linux on x86-64,reseam-windows-x64.exefor Windows on x86-64.
Both run patches on Java, so you also need a 64-bit Java runtime, version 17 or newer. The CLI finds it through JAVA_HOME, or java on your PATH.
Linux: rename the file and put it on your PATH:
chmod +x reseam-linux-x64
mv reseam-linux-x64 ~/.local/bin/reseam
reseam --version
Windows: rename it to reseam.exe and put it in a folder on your PATH. If Java isn't on your PATH, set JAVA_HOME:
$env:JAVA_HOME = "C:\path\to\jdk-21"
reseam --version
On other platforms, build from source.
Build from source
You need the Rust toolchain pinned in rust-toolchain.toml, a JDK in JAVA_HOME, and the BoltFFI CLI at the version in .boltffi-version. From the engine repository:
cargo xtask regen patch-api
cargo xtask runtime
cargo build --release -p reseam-cli
The binary is target/release/reseam. Cross-compiling for Windows from Linux is covered in sdk/README.md.
Logs
Logs go to stderr. By default you see progress, the result of each patch, warnings, and errors. Set RUST_LOG for more:
RUST_LOG=debug reseam patch app.apk --bundle patches.reseam --trust <key>
To see your patches' log.debug messages and the method each target picked, without the engine's own debug output, use RUST_LOG=info,reseam=debug.
RESEAM_JVM_HEAP sets the memory limit of the Java runtime that runs patches (default 256m).