Skip to content

ouch releases for different platforms using GoReleaser

Notifications You must be signed in to change notification settings

crs-org/ouch-releases

Repository files navigation

ouch releases for different platforms using GoReleaser

win-x86_64 win-aarch64

https://github.com/ouch-org/ouch does not have a fresh release yet, so let's build it by yourself

installation

  1. install rust using rustup: https://rustup.rs
rustc --version

cargo --version
  1. install goreleaser: https://goreleaser.com/install
goreleaser --version
  1. install podman: https://podman.io
podman machine init
podman machine start

podman version
  1. install cross: https://github.com/cross-rs/cross
cross --version
  1. build an image with edge version of x86_64-unknown-linux-gnu target
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 .
  1. build ouch from 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

About

ouch releases for different platforms using GoReleaser

Resources

Stars

Watchers

Forks