Skip to content

Commit

Permalink
- Updated wrong release link in README.md
Browse files Browse the repository at this point in the history
- cross-compile.sh append '.exe' for Windows binaries.
  • Loading branch information
abutaha committed Oct 31, 2016
1 parent 06c8aef commit b5da9b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions cross-compile.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b5da9b6

Please sign in to comment.