2016-03-27 14:37:54 +00:00
|
|
|
#!/bin/sh
|
|
|
|
for GOOS in darwin linux windows; do
|
|
|
|
for GOARCH in 386 amd64; do
|
2016-03-27 14:48:20 +00:00
|
|
|
EXE="gopush"
|
|
|
|
if [ $GOOS == "windows" ]; then
|
|
|
|
EXE="gopush.exe"
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Build: ${GOOS}, Arch: ${GOARCH}, EXE: ${EXE}"
|
|
|
|
GOOS=$GOOS GOARCH=$GOARCH go build -ldflags="-w" -o bin/$GOOS/$GOARCH/${EXE} gopush.go;
|
2016-03-27 14:37:54 +00:00
|
|
|
done
|
|
|
|
done
|