diff --git a/update/check.go b/update/check.go index 09755d65..fc6f1203 100644 --- a/update/check.go +++ b/update/check.go @@ -4,6 +4,7 @@ import ( "encoding/json" "fmt" "io/ioutil" + "strings" "time" ) @@ -66,7 +67,7 @@ func (u *Updater) parseVersionResponse(data []byte) (VersionInfo, error) { if ok && info.NewVersion != u.VersionString && - u.VersionString >= info.SelfUpdateMinVersion { + strings.TrimPrefix(u.VersionString, "v") >= strings.TrimPrefix(info.SelfUpdateMinVersion, "v") { info.CanAutoUpdate = true }