Add runtime version reporting

This commit is contained in:
2026-10-05 16:49:54 +00:00
parent 9e855c81a6
commit d692607e2b
11 changed files with 292 additions and 9 deletions

12
buildinfo/version.go Normal file
View File

@@ -0,0 +1,12 @@
// Package buildinfo provides runtime version information for applications
// built with ReleaseKit.
package buildinfo
import "gitea.maximumdirect.net/eric/ReleaseKit/internal/runtimeinfo"
// Version returns the injected release identifier when available. Otherwise,
// it returns the executable's main module version, or "dev" when that metadata
// is unavailable or identifies a development build.
func Version() string {
return runtimeinfo.Version()
}