附协议分析笔记,沿用统一的 update.lua 与打包脚本。 Co-authored-by: Copilot <[email protected]>
20 lines
653 B
Lua
20 lines
653 B
Lua
local PLUGIN_DIR = debug.getinfo(1, "S").source:match("^@(.*)/[^/]*$") or "."
|
|
if not package.path:find(PLUGIN_DIR .. "/?.lua", 1, true) then
|
|
package.path = PLUGIN_DIR .. "/?.lua;" .. package.path
|
|
end
|
|
local _ = require("moonsource_bilimanga.l10n")
|
|
|
|
local function lazy(module)
|
|
return setmetatable({}, { __index = function(_, key) return require(module)[key] end })
|
|
end
|
|
|
|
return {
|
|
api = 1,
|
|
provides = {
|
|
source = true,
|
|
},
|
|
meta = function() return require("moonsource_bilimanga.loadmeta") end,
|
|
new = function() return require("moonsource_bilimanga.source").new() end,
|
|
setting = lazy("moonsource_bilimanga.setting"),
|
|
}
|