Changeset 0.37.14 (#226)

Co-authored-by: gobha <jasafpro@gmail.com>
Co-committed-by: gobha <jasafpro@gmail.com>
This commit is contained in:
2026-03-23 16:47:48 +00:00
committed by xcaliber
parent fcb998bff9
commit b7746c3004
164 changed files with 6972 additions and 3527 deletions

View File

@@ -1,3 +1,25 @@
package main
const Version = "0.37.13"
import (
"os"
"strings"
)
// Version is the application version.
// In Docker builds, injected via ldflags from the VERSION file.
// In local dev, read from ../VERSION at startup.
var Version = "dev"
func init() {
if Version == "dev" {
if b, err := os.ReadFile("../VERSION"); err == nil {
if v := strings.TrimSpace(string(b)); v != "" {
Version = v
}
} else if b, err := os.ReadFile("VERSION"); err == nil {
if v := strings.TrimSpace(string(b)); v != "" {
Version = v
}
}
}
}