diff --git a/app/app.go b/app/app.go index 89e7ab46..c0230e52 100644 --- a/app/app.go +++ b/app/app.go @@ -61,6 +61,7 @@ type App struct { startStat Stat stopStat Stat deviceState int + versionName string anySyncVersion string } @@ -78,6 +79,17 @@ func (app *App) Version() string { return GitSummary } +func (app *App) SetVersionName(v string) { + app.versionName = v +} + +func (app *App) VersionName() string { + if app.versionName != "" { + return app.versionName + } + return AppName + ":" + GitSummary + "/any-sync:" + app.anySyncVersion +} + type Stat struct { SpentMsPerComp map[string]int64 SpentMsTotal int64