feat: add application versioning to UI and implement automated release workflow via Gitea Actions
Release / release (pull_request) Successful in 1m13s

This commit is contained in:
2026-06-12 14:38:57 +01:00
parent d5b4df9d56
commit e6d34c730a
5 changed files with 87 additions and 48 deletions
+4 -2
View File
@@ -15,6 +15,8 @@ import (
"goencode/internal/web"
)
var Version string = "dev"
func main() {
configPath := flag.String("config", "goencode.yaml", "Path to configuration file")
flag.Parse()
@@ -44,10 +46,10 @@ func main() {
wm.Start()
defer wm.Stop()
server := web.NewServer(cfg, qm, wm, sseServer)
server := web.NewServer(cfg, qm, wm, sseServer, Version)
go func() {
log.Printf("Starting GoEncode Web UI on %s:%d", cfg.Server.ListenAddr, cfg.Server.Port)
log.Printf("Starting GoEncode Web UI (v%s) on %s:%d", Version, cfg.Server.ListenAddr, cfg.Server.Port)
if err := server.Start(); err != nil {
log.Fatalf("Server failed: %v", err)
}