Update App version to 0.0.2

This commit is contained in:
luckfox-eng29
2025-09-16 11:03:46 +08:00
parent 8fbd6bcf0d
commit 15d276652c
45 changed files with 3347 additions and 252 deletions

8
ota.go
View File

@@ -59,7 +59,7 @@ var UpdateMetadataUrls = []string{
"https://api.github.com/repos/luckfox-eng29/kvm/releases/latest",
}
var builtAppVersion = "0.0.1+dev"
var builtAppVersion = "0.0.2+dev"
var updateSource = "github"
@@ -136,11 +136,7 @@ func fetchUpdateMetadata(ctx context.Context, deviceId string, includePreRelease
appSha256 = release.Assets[0].Digest
}
// add sha256 prefix
if strings.HasPrefix(appSha256, "sha256:") {
// delete "sha256:"
appSha256 = appSha256[7:]
}
appSha256 = strings.TrimPrefix(appSha256, "sha256:")
remoteMetadata := &RemoteMetadata{
AppUrl: updateUrl,