create UpdateChecker background task + constants refactoring

This commit is contained in:
Drew Weymouth
2023-03-30 19:19:00 -07:00
parent 2d7e633690
commit cca12d7327
6 changed files with 121 additions and 58 deletions
+7 -5
View File
@@ -14,10 +14,12 @@ import (
)
const (
appname = "supersonic"
displayName = "Supersonic"
appVersion = "0.0.1-alpha2"
configFile = "config.toml"
appname = "supersonic"
displayName = "Supersonic"
appVersion = "0.0.1-alpha2"
appVersionTag = "v" + appVersion
configFile = "config.toml"
latestReleaseURL = "https://github.com/dweymouth/supersonic/releases/latest"
)
func configPath() string {
@@ -25,7 +27,7 @@ func configPath() string {
}
func main() {
myApp, err := backend.StartupApp()
myApp, err := backend.StartupApp(appname, appVersionTag, latestReleaseURL)
if err != nil {
log.Fatalf("fatal startup error: %v", err.Error())
}