Skip to content

Commit

Permalink
Switches windows binary package to zip
Browse files Browse the repository at this point in the history
  • Loading branch information
tomnomnom committed Jul 3, 2016
1 parent bd1ab8f commit 8ae6707
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
gron
*.tgz
*.zip
*.swp
*.exe
cpu.out
Expand Down
9 changes: 7 additions & 2 deletions script/release
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,13 @@ for OS in "darwin" "linux" "windows"; do

GOOS=${OS} GOARCH=amd64 go build github.com/${USER}/${REPO}

ARCHIVE="${BINARY}-${OS}-amd64-${VERSION}.tgz"
tar --create --gzip --file=${ARCHIVE} ${BINFILE}
if [[ "${OS}" == "windows" ]]; then
ARCHIVE="${BINARY}-${OS}-amd64-${VERSION}.zip"
zip ${ARCHIVE} ${BINFILE}
else
ARCHIVE="${BINARY}-${OS}-amd64-${VERSION}.tgz"
tar --create --gzip --file=${ARCHIVE} ${BINFILE}
fi

echo "Uploading ${ARCHIVE}..."
github-release upload \
Expand Down

0 comments on commit 8ae6707

Please sign in to comment.