summary history branches tags files
commit:68458ea51e1c8bd5a2a021f7f18aa9f06ad8bb8a
author:Trevor Bentley
committer:Trevor Bentley
date:Fri Aug 4 00:03:35 2017 +0200
parents:17e67b0b32ca501f7aa82ab0eefa10d8d1387128
Add script to generate release zips on OS X
diff --git a/release_osx.sh b/release_osx.sh
line changes: +15/-0
index 0000000..2619b6a
--- /dev/null
+++ b/release_osx.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+APP="connectr"
+DST="target/"
+APPDIR="Connectr.app"
+RELEASE=`git describe --abbrev=0`
+
+echo "Building OS X app $RELEASE..."
+
+cargo run --release && pkill "$APP"
+
+strip "$DST/$APPDIR/Contents/MacOS/$APP"
+(cd "$DST" && zip -r9 "$RELEASE.zip" "$APPDIR" && md5 "$RELEASE.zip" > "$RELEASE.md5")
+
+echo "Done!"