Install
CLI browser commands currently require macOS and a child worker. Set
BRIMP_WORKER_PATH to the lite worker executable or a WebKit worker bundle,
or pass --worker-path PATH. Build both with
cargo build -p brimp-controller -p brimp-lite-worker.
CLI and CDP worker
Section titled “CLI and CDP worker”Each tagged GitHub Release includes standalone CLI archives for every supported native target:
| Operating system | Architecture | Archive target |
|---|---|---|
| Linux | x86-64 | x86_64-unknown-linux-gnu |
| Linux | ARM64 | aarch64-unknown-linux-gnu |
| macOS 11+ | ARM64 | aarch64-apple-darwin |
| Windows | x86-64 | x86_64-pc-windows-msvc |
Unix archives use .tar.gz; Windows uses .zip. Every archive has a matching
.sha256 file and bundles JavaScriptCore, curl-impersonate, required non-system
runtime libraries, and licenses. For example, on macOS:
shasum -a 256 -c brimp-vVERSION-aarch64-apple-darwin.tar.gz.sha256tar -xzf brimp-vVERSION-aarch64-apple-darwin.tar.gz./brimp-vVERSION-aarch64-apple-darwin/brimp doctor --worker-path ./brimp-vVERSION-aarch64-apple-darwin/lite-workerThe CLI and the controller-managed CDP worker can also be built from source:
git clone https://github.com/lexiforest/brimp.gitcd brimpcargo build --release -p brimp-controllercargo build --release -p brimp-lite-worker./target/release/brimp doctor --worker-path ./target/release/lite-workerSource builds dynamically link JavaScriptCore and curl-impersonate. Point the build at their library directories before invoking Cargo:
export BRIMP_JSC_LIB_DIR=/path/to/javascriptcore/libexport BRIMP_CURL_LIB_DIR=/path/to/curl-impersonate/libcargo build --release -p brimp-controllerExpected library layouts vary by platform:
- macOS:
JavaScriptCore.frameworkand a curl-impersonate dynamic library; - Linux:
libJavaScriptCore.soand a curl-impersonate shared library; - Windows:
JavaScriptCore.liband the corresponding curl import/runtime libraries.
After installation, continue with the quick start.