mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Add marketplace package config item minAppVersion https://github.com/siyuan-note/siyuan/issues/8330
This commit is contained in:
parent
7379ff1e27
commit
8cbe54c2ab
6 changed files with 13 additions and 25 deletions
|
|
@ -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 Widget struct {
|
||||
|
|
@ -65,10 +64,7 @@ func Widgets() (widgets []*Widget) {
|
|||
return
|
||||
}
|
||||
|
||||
if "" == widget.MinAppVersion {
|
||||
widget.MinAppVersion = defaultMinAppVersion
|
||||
}
|
||||
if 0 < semver.Compare("v"+widget.MinAppVersion, "v"+util.Ver) {
|
||||
if disallowDisplayBazaarPackage(widget.MinAppVersion) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue