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

View File

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