https://github.com/ouch-org/ouch does not have a fresh release yet, so let's build it by yourself
- install rust using
rustup: https://rustup.rs
rustc --version
cargo --version- install
goreleaser: https://goreleaser.com/install
goreleaser --version- install
podman: https://podman.io
podman machine init
podman machine start
podman version- install
cross: https://github.com/cross-rs/cross
cross --version- build an image with edge version of
x86_64-unknown-linux-gnutarget
podman build --platform=linux/amd64 -f Dockerfile.aarch64-unknown-linux-gnu -t aarch64-unknown-linux-gnu:ouch .
podman build --platform=linux/amd64 -f Dockerfile.x86_64-unknown-linux-gnu -t x86_64-unknown-linux-gnu:ouch .- build
ouchfrom the source code:
# copy main branch of ouch
git clone https://github.com/ouch-org/ouch
cp .goreleaser.yaml ouch/
cp Cross.toml ouch/
cd ouch
# build
goreleaser build --clean --snapshot --id ouch
# archive ouch by ouch (on Mac)
./dist/ouch_aarch64-apple-darwin/ouch compress ./dist/ouch_x86_64-unknown-linux-gnu ./dist/ouch_x86_64-unknown-linux-gnu.zip
./dist/ouch_aarch64-apple-darwin/ouch compress ./dist/ouch_x86_64-unknown-linux-musl ./dist/ouch_x86_64-unknown-linux-musl.zip
./dist/ouch_aarch64-apple-darwin/ouch compress ./dist/ouch_aarch64-unknown-linux-gnu ./dist/ouch_aarch64-unknown-linux-gnu.zip
./dist/ouch_aarch64-apple-darwin/ouch compress ./dist/ouch_x86_64-apple-darwin ./dist/ouch_x86_64-apple-darwin.zip
./dist/ouch_aarch64-apple-darwin/ouch compress ./dist/ouch_aarch64-apple-darwin ./dist/ouch_aarch64-apple-darwin.zip