]> git.lizzy.rs Git - micro.git/blobdiff - tools/pre-release.sh
Close fd properly in save
[micro.git] / tools / pre-release.sh
index c950088b8bc190514ff84731a9814f2cf33b931f..a7219b280d6228e61745875e4e41d38824656897 100755 (executable)
@@ -1,5 +1,4 @@
 # This script creates releases on Github for micro
-# It assumes that the binaries are in the current directory
 # You must have the correct Github access token to run this script
 
 # $1 is the title, $2 is the description
@@ -20,6 +19,10 @@ github-release release \
     --description "$2" \
     --pre-release
 
+echo "Cross compiling binaries"
+./cross-compile.sh $1
+mv ../binaries .
+
 echo "Uploading OSX binary"
 github-release upload \
     --user zyedidia \
@@ -115,3 +118,19 @@ github-release upload \
     --tag $tag \
     --name "micro-$1-win32.zip" \
     --file binaries/micro-$1-win32.zip
+
+echo "Uploading vendored tarball"
+github-release upload \
+    --user zyedidia \
+    --repo micro \
+    --tag $tag \
+    --name "micro-$1-src.tar.gz" \
+    --file binaries/micro-$1-src.tar.gz
+
+echo "Uploading vendored zip"
+github-release upload \
+    --user zyedidia \
+    --repo micro \
+    --tag $tag \
+    --name "micro-$1-src.zip" \
+    --file binaries/micro-$1-src.zip