feat: add command to show version (#604)

* feat: add -version flag for jetkvm_app

* move code to kvm package
This commit is contained in:
Aveline
2025-07-11 11:32:46 +02:00
committed by GitHub
parent ab3dda6dee
commit d704fcc6c7
6 changed files with 100 additions and 2 deletions

4
ota.go
View File

@@ -50,6 +50,10 @@ const UpdateMetadataUrl = "https://api.jetkvm.com/releases"
var builtAppVersion = "0.1.0+dev"
func GetBuiltAppVersion() string {
return builtAppVersion
}
func GetLocalVersion() (systemVersion *semver.Version, appVersion *semver.Version, err error) {
appVersion, err = semver.NewVersion(builtAppVersion)
if err != nil {