-
Notifications
You must be signed in to change notification settings - Fork 51
Installation
Looking to build from source? Follow me.
You may choose to install the following optional dependencies:
Linux:
- wmctrl
NetBSD:
- wmctrl
pkgin install macchina
zypper in macchina
brew install macchina
pkg install macchina
scoop install macchina
nix-env -iA <channel>.macchina
<channel>
can either benixpkgs
ornixos
guix install macchina
pacman -S macchina
cargo install macchina
The following are required dependencies if you're building from source or
installing through cargo
:
Quicklinks:
Make sure to replace the --target
value with the corresponding toolchain for your Android device.
git clone --recurse-submodules https://github.com/macchina-cli/macchina
cd macchina
cross build --target aarch64-linux-android --release
You can push the executable to your Android device using adb (Android Debug Bridge).
Make sure to replace the --target
value with the corresponding toolchain for your OpenWrt device.
git clone --recurse-submodules https://github.com/macchina-cli/macchina
cd macchina
cross build --target mipsel-unknown-linux-musl --features=openwrt --release
scp target/mipsel-unknown-linux-musl/release/macchina root@192.168.1.1:~/
- Clone:
git clone --recurse-submodules https://github.com/grtcdr/macchina
cd macchina
- Build:
For normal usage, we recommend building an optimized binary. If you plan to work on macchina, then go with unoptimized. The performance difference between the two is very noticeable, but so is the compilation time.
- To produce an optimized binary, run:
# macchina's binary will be placed in target/release/
cargo build --release
# the produced binary is quite huge, consider stripping it to reduce its size
strip target/release/macchina
# place the binary in your PATH, or run it through cargo.
cargo run --release
- To produce an unoptimized binary, run:
# macchina's binary will be placed in target/debug/
cargo build
# place the binary in your PATH, or run it through cargo.
cargo run