From 37ba5f6fde364e7f2daa21879604b689df17abce Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Wed, 19 May 2021 19:01:01 -0400 Subject: [PATCH] Add Mac build script --- build-mac.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 build-mac.sh diff --git a/build-mac.sh b/build-mac.sh new file mode 100644 index 0000000..a6a7b7c --- /dev/null +++ b/build-mac.sh @@ -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"