feat: include version information in builds

This commit is contained in:
2025-06-23 04:27:59 -05:00
parent 5b17297837
commit 133c95cd36
4 changed files with 25 additions and 9 deletions

View File

@@ -11,6 +11,8 @@ import (
"ha-tray/internal/service"
)
var Version = "dev"
func main() {
logger, logFile, err := setupLogging()
if err != nil {
@@ -19,6 +21,8 @@ func main() {
defer logFile.Sync()
defer logFile.Close()
logger.Info("HATray started", "version", Version)
defer func() {
if r := recover(); r != nil {
logger.Error("uncaught panic recovered", "panic", r)