Other: Fix force-update test after version bump

This commit is contained in:
James Houlahan
2022-10-12 17:17:22 +02:00
parent d330000c8d
commit 6ee71d238b
3 changed files with 13 additions and 11 deletions

View File

@ -45,9 +45,6 @@ var (
// Version of the build.
Version = "2.4.1+git"
// AppVersion is the full rendered version of the app (to be used in request headers).
AppVersion = getAPIOS() + cases.Title(language.Und).String(ConfigName) + "_" + Version
// Revision is current hash of the build.
Revision = ""
@ -67,6 +64,11 @@ var (
Host = "127.0.0.1"
)
// AppVersion returns the full rendered version of the app (to be used in request headers).
func AppVersion(version string) string {
return getAPIOS() + cases.Title(language.Und).String(ConfigName) + "_" + version
}
func getAPIOS() string {
switch runtime.GOOS {
case "darwin":