[ci skip] update readme,
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
abb027d8de
commit
cba1a99f0b
|
@ -128,13 +128,13 @@ $ go get -u github.com/appleboy/gorush
|
|||
On linux
|
||||
|
||||
```
|
||||
$ wget -qO- https://github.com/appleboy/gorush/releases/download/v1.6.4/gorush-v1.6.4-linux-amd64.tar.gz | tar xvz
|
||||
$ wget https://github.com/appleboy/gorush/releases/download/v1.6.5/gorush-v1.6.5-linux-amd64 -O gorush
|
||||
```
|
||||
|
||||
On OS X
|
||||
|
||||
```
|
||||
$ wget -qO- https://github.com/appleboy/gorush/releases/download/v1.6.4/gorush-v1.6.4-darwin-amd64.tar.gz | tar xvz
|
||||
$ wget https://github.com/appleboy/gorush/releases/download/v1.6.5/gorush-v1.6.5-darwin-amd64 -O gorush
|
||||
```
|
||||
|
||||
### Command Usage
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
OS="darwin linux"
|
||||
ARCH="amd64"
|
||||
VERSION=$1
|
||||
|
||||
for GOOS in $OS; do
|
||||
for GOARCH in $ARCH; do
|
||||
EXE="gorush"
|
||||
(test "$GOOS" = "windows") && EXE="gorush.exe"
|
||||
|
||||
echo "Build: ${GOOS}, Arch: ${GOARCH}, EXE: ${EXE}"
|
||||
GOOS=$GOOS GOARCH=$GOARCH CGO_ENABLED=0 go build -ldflags="-s -w -X main.Version=${VERSION}" -o bin/$GOOS/$GOARCH/${EXE} gorush.go;
|
||||
tar -C bin/$GOOS/$GOARCH -czf bin/gorush-$VERSION-$GOOS-$GOARCH.tar.gz gorush
|
||||
done
|
||||
done
|
Loading…
Reference in New Issue