From 5ebf58f569f33a7b0adee6bf43e6b59258c51c6b Mon Sep 17 00:00:00 2001 From: Tom Hudson Date: Tue, 7 Jun 2016 00:17:34 +0100 Subject: [PATCH] Switches to tarball for binary releases --- .gitignore | 2 ++ script/release | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 7bc1d03..2975d73 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ gron +*.tgz +*.swp diff --git a/script/release b/script/release index 79113fb..75871ca 100755 --- a/script/release +++ b/script/release @@ -4,6 +4,8 @@ PROJDIR=$(cd `dirname $0`/.. && pwd) TAG=${1} USER="tomnomnom" REPO="gron" +BINARY="${REPO}" +ARCHIVE="${BINARY}-linux-amd64-${TAG}.tgz" if [[ -z "${TAG}" ]]; then echo "Usage: ${0} " @@ -17,6 +19,7 @@ fi cd ${PROJDIR} go build github.com/${USER}/${REPO} +tar --create --gzip --file=${ARCHIVE} ${BINARY} github-release release \ --user ${USER} \ @@ -30,5 +33,5 @@ github-release upload \ --user ${USER} \ --repo ${REPO} \ --tag ${TAG} \ - --name "${REPO}-linux-amd64" \ - --file ${PROJDIR}/${REPO} + --name "${ARCHIVE}" \ + --file ${PROJDIR}/${ARCHIVE}