diff --git a/backend/service/update.go b/backend/service/update.go index b720aca..4a2e1e7 100644 --- a/backend/service/update.go +++ b/backend/service/update.go @@ -508,6 +508,10 @@ func (u *Update) verifySignature(binaryPath, sigPath string) error { } func (u *Update) CheckUpdateVersion(currentVersion, latestVersion string) (bool, error) { + if !build.Flags.Production { + // ignroe version in development + return false, nil + } // The semver package expects versions to be prefixed with 'v' current := ensureVPrefix(currentVersion) latest := ensureVPrefix(latestVersion)