This commit is contained in:
naiba 2020-11-30 14:44:01 +08:00
parent 7ce1f535f5
commit 286e174943

View File

@ -64,9 +64,10 @@ func doSelfUpdate() {
// latest version is the same as current version. It means current binary is up to date.
log.Println("Current binary is the latest version", version)
} else {
log.Println("Prev version", dao.Version)
dao.Version = latest.Version.String()
client.Register(ctx, monitor.GetHost().PB())
log.Println("Successfully updated to version", latest.Version)
log.Println("Release note:\n", latest.ReleaseNotes)
}
}