From 197bad6faf99ca357540abf360ef5bca42c7c146 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Mon, 4 Mar 2019 16:07:40 +0800 Subject: [PATCH] docs: update build section Signed-off-by: Bo-Yi Wu --- README.md | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) 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