mirror of
https://github.com/azukaar/Cosmos-Server.git
synced 2026-10-12 02:11:26 +00:00
[skip ci] WIP
This commit is contained in:
@@ -110,6 +110,12 @@ func checkVersion() {
|
||||
return
|
||||
}
|
||||
|
||||
// never notify about a prerelease/unstable build unless the user opted into beta updates
|
||||
if latest.Prerelease() != "" && !utils.GetMainConfig().BetaUpdates {
|
||||
utils.Log("Latest version " + check.Latest + " is a prerelease, ignoring (not on beta updates)")
|
||||
return
|
||||
}
|
||||
|
||||
// only notify on a major or minor bump, ignore patches
|
||||
if current.Compare(latest) == -1 && (current.Major() != latest.Major() || current.Minor() != latest.Minor()) {
|
||||
utils.Log("New version available: " + check.Latest)
|
||||
|
||||
Reference in New Issue
Block a user