# Source tar
-# ./vendor-src.sh micro-$1-src
+./vendor-src.sh micro-$1-src
cd ..
mkdir -p binaries
mkdir -p micro-$1
-# mv micro-$1-src.tar.gz binaries
-# mv micro-$1-src.zip binaries
+mv micro-$1-src.tar.gz binaries
+mv micro-$1-src.zip binaries
cp LICENSE micro-$1
cp README.md micro-$1
# This script creates the nightly release 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
echo "Deleting old release"
--description "Autogenerated nightly build of micro" \
--pre-release
+echo "Cross compiling binaries"
+./cross-compile.sh $1
+mv ../binaries .
+
echo "Uploading OSX binary"
github-release upload \
--user zyedidia \
--name "micro-$1-win32.zip" \
--file binaries/micro-$1-win32.zip
-# echo "Uploading vendored tarball"
-# github-release upload \
-# --user zyedidia \
-# --repo micro \
-# --tag nightly \
-# --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 nightly \
-# --name "micro-$1-src.zip" \
-# --file binaries/micro-$1-src.zip
+echo "Uploading vendored tarball"
+github-release upload \
+ --user zyedidia \
+ --repo micro \
+ --tag nightly \
+ --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 nightly \
+ --name "micro-$1-src.zip" \
+ --file binaries/micro-$1-src.zip
# 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
--description "$2" \
--pre-release
+echo "Cross compiling binaries"
+./cross-compile.sh $1
+mv ../binaries .
+
echo "Uploading OSX binary"
github-release upload \
--user zyedidia \
--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
+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
# 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
--name "$1" \
--description "$2" \
+echo "Cross compiling binaries"
+./cross-compile.sh $1
+mv ../binaries .
+
echo "Uploading OSX binary"
github-release upload \
--user zyedidia \
--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
+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
-cd ../cmd/micro
-
-govendor init
-govendor add +e
-
-cd ../../..
+cd ../..
tar czf "$1".tar.gz micro
zip -rq "$1".zip micro