docs: update build section

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2019-03-04 16:07:40 +08:00
parent c80f626d19
commit 197bad6faf

View File

@ -24,12 +24,31 @@ information and a listing of the available options please take a look at [the do
* [x] Send with New Video. * [x] Send with New Video.
* [x] Send with New Sticker. * [x] Send with New Sticker.
## Build ## Build or Download a binary
Build the binary with the following commands: The pre-compiled binaries can be downloaded from [release page](https://github.com/appleboy/drone-telegram/releases). Support the following OS type.
* Windows amd64/386
* Linux arm/amd64/386
* Darwin amd64/386
With `Go` installed
``` ```
$ make build $ go get -u -v github.com/appleboy/drone-telegram
```
or build the binary with the following command:
```
$ export GOOS=linux
$ export GOARCH=amd64
$ export CGO_ENABLED=0
$ export GO111MODULE=on
$ go test -cover ./...
$ go build -v -a -tags netgo -o release/linux/amd64/drone-telegram .
``` ```
## Testing ## Testing