diff --git a/README.md b/README.md index 5590df5..e6b1b46 100644 --- a/README.md +++ b/README.md @@ -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 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