From b5da9b686233c9f086167d7ad07a3814e88dc61a Mon Sep 17 00:00:00 2001 From: Muslim AbuTaha Date: Mon, 31 Oct 2016 21:26:33 +0200 Subject: [PATCH] - Updated wrong release link in README.md - cross-compile.sh append '.exe' for Windows binaries. --- README.md | 2 +- cross-compile.sh | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8844f142..756d7374 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Kibana requests are also signed automatically. **aws-es-proxy** has single executable binaries for Linux, Mac and Windows. -Download the latest [aws-es-proxy release](http://google.com). +Download the latest [aws-es-proxy release](https://github.com/abutaha/aws-es-proxy/releases/). ### Build from Source diff --git a/cross-compile.sh b/cross-compile.sh index c10638bd..aafc4eed 100755 --- a/cross-compile.sh +++ b/cross-compile.sh @@ -1,9 +1,13 @@ #!/bin/bash -mkdir -p dist +rm -rf dist; mkdir -p dist for GOOS in darwin linux windows; do for GOARCH in 386 amd64; do echo "Building $GOOS-$GOARCH" - env GOOS=$GOOS GOARCH=$GOARCH go build -o dist/aws-es-proxy-$GOOS-$GOARCH + if [[ $GOOS == "windows" ]]; then + env GOOS=$GOOS GOARCH=$GOARCH go build -o dist/aws-es-proxy-${GOOS}-${GOARCH}.exe + else + env GOOS=$GOOS GOARCH=$GOARCH go build -o dist/aws-es-proxy-${GOOS}-${GOARCH} + fi done done