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