remove build num
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
4cacf0f558
commit
9b8c7c6445
8
main.go
8
main.go
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user