Manager: Better reporting of version via API call

Before: `3.3-alpha0-v3.2-76-gdd34d538-dirty`
After : `3.3-alpha0 (v3.2-76-gdd34d538-dirty)`

Also include the new `git` property to always have the Git hash (the part
between parentheses).
This commit is contained in:
Sybren A. Stüvel 2023-07-06 12:20:53 +02:00
parent 82456424c9
commit 6a30f844eb
3 changed files with 3 additions and 2 deletions

@ -12,7 +12,7 @@ bugs in actually-released versions.
- Fix limitation where a job could have no more than 1000 tasks ([#104201](https://projects.blender.org/studio/flamenco/issues/104201))
- Add support for finding the top-level 'project' directory. When submitting files to Flamenco, the add-on will try to retain the directory structure of your Blender project as precisely as possible. This new feature allows the add-on to find the top-level directory of your project by finding a `.blender_project`, `.git`, or `.subversion` directory. This can be configured in the add-on preferences.
- Worker status is remembered when they sign off, so that workers when they come back online do so to the same state ([#99549](https://projects.blender.org/studio/flamenco/issues/99549)).
- Nicer version display for non-release builds. Instead of `3.3-alpha0-v3.2-76-gdd34d538`, show `3.3-alpha0 (v3.2-76-gdd34d538)`.
## 3.2 - released 2023-02-21

@ -44,6 +44,6 @@ func ExtendedVersion() string {
case releaseCycleRelease, releaseCycleReleaseCandidate:
return ApplicationVersion
default:
return fmt.Sprintf("%s-%s", ApplicationVersion, ApplicationGitHash)
return fmt.Sprintf("%s (%s)", ApplicationVersion, ApplicationGitHash)
}
}

@ -26,6 +26,7 @@ func (f *Flamenco) GetVersion(e echo.Context) error {
Version: appinfo.ExtendedVersion(),
Shortversion: appinfo.ApplicationVersion,
Name: appinfo.ApplicationName,
Git: appinfo.ApplicationGitHash,
})
}