Add Mac build script

This commit is contained in:
Austen Adler 2021-05-19 19:01:01 -04:00
parent f7cd14549e
commit 37ba5f6fde

10
build-mac.sh Normal file
View File

@ -0,0 +1,10 @@
#!/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"