🎨 Add marketplace package config item minAppVersion https://github.com/siyuan-note/siyuan/issues/8330

This commit is contained in:
Daniel 2023-05-24 10:38:30 +08:00
parent 7379ff1e27
commit 8cbe54c2ab
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
6 changed files with 13 additions and 25 deletions

View file

@ -29,7 +29,6 @@ import (
"github.com/siyuan-note/httpclient"
"github.com/siyuan-note/logging"
"github.com/siyuan-note/siyuan/kernel/util"
"golang.org/x/mod/semver"
)
type Icon struct {
@ -64,10 +63,7 @@ func Icons() (icons []*Icon) {
return
}
if "" == icon.MinAppVersion {
icon.MinAppVersion = defaultMinAppVersion
}
if 0 < semver.Compare("v"+icon.MinAppVersion, "v"+util.Ver) {
if disallowDisplayBazaarPackage(icon.MinAppVersion) {
return
}