#!/usr/bin/env sh
rustup update stable
rustup target add x86_64-unknown-linux-musl --toolchain stable
cargo +stable build --release --target x86_64-unknown-linux-musl
strip --strip-all target/x86_64-unknown-linux-musl/release/rshare
cp target/x86_64-unknown-linux-musl/release/rshare .
