rpn_rs/build-mac.sh
2021-05-20 13:01:01 -04:00

11 lines
315 B
Bash

#!/usr/bin/env zsh
set -euxo pipefail
TARGET=target/x86_64-apple-darwin/release/rpn_rs
cargo build --release --target x86_64-apple-darwin
du -sh "./${TARGET}"
strip "./${TARGET}"
du -sh "./${TARGET}"
gzip -f "./${TARGET}"
du -sh "./${TARGET}.gz"
mv "./${TARGET}.gz" "./target/release/rpn_rs-x86_64-apple-darwin.gz"