diff --git a/script/build.sh b/script/build.sh index eb82808..324ed90 100755 --- a/script/build.sh +++ b/script/build.sh @@ -1,6 +1,6 @@ #!/bin/sh -OS="darwin linux windows" +OS="darwin linux" ARCH="amd64" for GOOS in $OS; do @@ -10,5 +10,6 @@ for GOOS in $OS; do echo "Build: ${GOOS}, Arch: ${GOARCH}, EXE: ${EXE}" GOOS=$GOOS GOARCH=$GOARCH go build -ldflags="-w" -o bin/$GOOS/$GOARCH/${EXE} gopush.go; + tar -C bin/$GOOS/$GOARCH -czf bin/gopush-$GOOS-$GOARCH.tar.gz gopush done done