✨ (update): 书源插件加入检查更新与自动更新
每个插件带一份 update.lua 副本(源在 src/_common),所有插件同版本, 一个需要更新则已装的全部一起更新;设置项只由第一个插件登记到「书库 → 更新」。 打包时注入 version.lua 的版本号,README 与测试同步。 Co-authored-by: Copilot <[email protected]>
This commit is contained in:
1 parent
1f4f113f74
commit
3305bfb291
3 files changed
+476
-1
No files matched your search
@@ -9,9 +9,14 @@ local function lazy(module)
|
||||
return setmetatable({}, { __index = function(_, key) return require(module)[key] end })
|
||||
end
|
||||
|
||||
require("moonsource_jjwxc.update").register()
|
||||
|
||||
return {
|
||||
api = 1,
|
||||
provides = { source = true },
|
||||
provides = {
|
||||
source = true,
|
||||
features = { setting = { entries = function(desktop) return require("moonsource_jjwxc.update").entries(desktop) end } },
|
||||
},
|
||||
meta = function() return require("moonsource_jjwxc.source").meta() end,
|
||||
new = function() return require("moonsource_jjwxc.source").new() end,
|
||||
setting = lazy("moonsource_jjwxc.setting"),
|
||||
|
||||
Reference in new issue
Block a user