Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-02-01 16:44:15 +08:00
parent 51b362c18f
commit 781144a60d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
5 changed files with 10 additions and 5 deletions

View file

@ -160,15 +160,16 @@ func InstalledTemplates() (ret []*Template) {
continue
}
template.RepoURL = template.URL
template.DisallowInstall = disallowInstallBazaarPackage(template.Package)
if bazaarPkg := getBazaarTemplate(template.Name, bazaarTemplates); nil != bazaarPkg {
template.DisallowUpdate = disallowInstallBazaarPackage(bazaarPkg.Package)
template.UpdateRequiredMinAppVer = bazaarPkg.MinAppVersion
template.RepoURL = bazaarPkg.RepoURL
}
installPath := filepath.Join(util.DataDir, "templates", dirName)
template.Installed = true
template.RepoURL = template.URL
template.PreviewURL = "/templates/" + dirName + "/preview.png"
template.PreviewURLThumb = "/templates/" + dirName + "/preview.png"
template.IconURL = "/templates/" + dirName + "/icon.png"