remove build num

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2019-02-19 10:53:06 +08:00
parent 4cacf0f558
commit 9b8c7c6445

10
main.go
View File

@ -11,8 +11,7 @@ import (
// Version set at compile-time
var (
Version string
BuildNum string
Version string
)
func main() {
@ -20,6 +19,7 @@ func main() {
app.Name = "telegram plugin"
app.Usage = "telegram plugin"
app.Action = run
app.Version = Version
app.Flags = []cli.Flag{
cli.StringFlag{
Name: "token",
@ -227,12 +227,6 @@ func main() {
},
}
app.Version = Version
if BuildNum != "" {
app.Version = app.Version + "+" + BuildNum
}
if err := app.Run(os.Args); err != nil {
log.Fatal(err)
}