app.VersionName

This commit is contained in:
Sergey Cherepanov 2023-06-12 15:58:23 +02:00
parent fb1df54941
commit 40cd112a2a
No known key found for this signature in database
GPG Key ID: 87F8EDE8FBDF637C

View File

@ -61,6 +61,7 @@ type App struct {
startStat Stat startStat Stat
stopStat Stat stopStat Stat
deviceState int deviceState int
versionName string
anySyncVersion string anySyncVersion string
} }
@ -78,6 +79,17 @@ func (app *App) Version() string {
return GitSummary 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 { type Stat struct {
SpentMsPerComp map[string]int64 SpentMsPerComp map[string]int64
SpentMsTotal int64 SpentMsTotal int64