2016-03-27 14:37:54 +00:00
|
|
|
#!/bin/sh
|
2016-03-28 07:57:20 +00:00
|
|
|
|
|
|
|
OS="darwin linux windows"
|
|
|
|
ARCH="amd64"
|
|
|
|
|
|
|
|
for GOOS in $OS; do
|
|
|
|
for GOARCH in $ARCH; do
|
2016-03-27 14:48:20 +00:00
|
|
|
EXE="gopush"
|
2016-03-28 07:57:20 +00:00
|
|
|
(test "$GOOS" = "windows") && EXE="gopush.exe"
|
2016-03-27 14:48:20 +00:00
|
|
|
|
|
|
|
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
|