mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-10 10:00:49 +09:00
app.VersionName
This commit is contained in:
parent
fb1df54941
commit
40cd112a2a
1 changed files with 12 additions and 0 deletions
12
app/app.go
12
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue