Switch to semver, basic test.

This commit is contained in:
2021-06-17 18:47:59 +09:30
parent c47660addf
commit 1812486b19
6 changed files with 54 additions and 3 deletions

4
dau.go
View File

@@ -99,7 +99,7 @@ func checkUpdates() {
log.Fatal("could not parse JSON: ", err)
}
if config.CurrentVersion < latest.TagName {
if config.NewVersionAvailable(latest.TagName) {
fmt.Printf("You are currently on version %s, but version %s is available\n", config.CurrentVersion, latest.TagName)
fmt.Println("----------- Release Info -----------")
fmt.Println(latest.Body)
@@ -108,6 +108,8 @@ func checkUpdates() {
daulog.SendLog(fmt.Sprintf("New version available: %s - download at https://github.com/tardisx/discord-auto-upload/releases/latest", latest.TagName), daulog.LogTypeInfo)
}
daulog.SendLog("already running latest version", daulog.LogTypeInfo)
}
func parseOptions() {