Skip to content

Commit

Permalink
Small improvements
Browse files Browse the repository at this point in the history
- Added version number
- Renamed 'darwin' to 'mac'
  • Loading branch information
abutaha committed Nov 1, 2016
1 parent b5da9b6 commit 8ba7b08
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cross-compile.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
#!/bin/bash

VERSION="0.2"

rm -rf dist; mkdir -p dist
for GOOS in darwin linux windows; do
for GOARCH in 386 amd64; do
echo "Building $GOOS-$GOARCH"
if [[ $GOOS == "windows" ]]; then
env GOOS=$GOOS GOARCH=$GOARCH go build -o dist/aws-es-proxy-${GOOS}-${GOARCH}.exe
env GOOS=$GOOS GOARCH=$GOARCH go build -o dist/aws-es-proxy-${VERSION}-${GOOS}-${GOARCH}.exe
elif [[ $GOOS == "darwin" ]]; then
env GOOS=$GOOS GOARCH=$GOARCH go build -o dist/aws-es-proxy-${VERSION}-mac-${GOARCH}
else
env GOOS=$GOOS GOARCH=$GOARCH go build -o dist/aws-es-proxy-${GOOS}-${GOARCH}
env GOOS=$GOOS GOARCH=$GOARCH go build -o dist/aws-es-proxy-${VERSION}-${GOOS}-${GOARCH}
fi
done
done

0 comments on commit 8ba7b08

Please sign in to comment.