Skip to content

插件开发

Mr Chen edited this page Jun 14, 2022 · 15 revisions

插件开发。

插件文件一般在/www/server/mdserver-web/plugins

最少文件

index.html
info.json
index.py
install.sh

info.json

{
	"id":3,
	"title":"系统优化",
	"tip":"soft",
	"name":"sys-opt",
	"type":"扩展",
	"ps":"仅Linux系统优化",
	"versions":"1.0",
	"shell":"install.sh",
	"checks":"server/sys-opt",
	"path": "server/sys-opt",
	"author":"midoks",
	"home":"",
	"date":"2018-12-20",
	"pid":"4"
}

ps:注释
title:名称
pid:类型[0-5]
1-运行环境
2-数据软件
3-代码管理
4-系统工具
4-其他插件

versions:有两种形式。
{
...
"versions":["5.5", "5.6", "5.7","8.0"],
...
or
...
"versions":"1.0",
...
}

一个例子

Clone this wiki locally