应用管理
应用分类及文件结构请参考应用说明
应用安装包:.fpk(全称fine package)
应用安装
- 将应用安装到
lib和webapps文件夹后,会将对应的配置信息配置到conf/libs.json和conf/apps.json,即表示安装成功 - 该信息主要来源于应用的程序配置信息
manifest.json
libs.json
- 安装nginx,
libs中配置
json
{
"libs": [
{
"name": "nginx",
"nickname": "nginx",
"version": "1.24.0",
"filename": "nginx-1.24.0",
"type": "lib",
"source": "other",
"system": "windows",
"author": "北京凡图科技有限责任公司",
"description": "nginx",
"logo": "nginx.png",
"restart": "bin\\restart.bat",
"progress": "bin\\progress.bat",
"startup": "bin\\startup.bat",
"shutdown": "bin\\shutdown.bat",
"status": "bin\\status.bat"
}
],
"command": []
}apps.json
- 安装desktop,
apps中配置
json
{
"apps": [{
"name": "desktop",
"nickname": "desktop",
"version": "1.0",
"filename": "desktop-1.0",
"type": "app",
"source": "static",
"system": "window",
"author": "凡图科技",
"description": "桌面",
"logo": ""
}],
"start": []
}应用程序
| 文件 | 作用 |
|---|---|
| bin/startup | 启动程序 |
| bin/shutdown | 关闭程序 |
| bin/progress | 进程检查 |
| bin/status | 启动状态 |
| bin/restart | 重启程序 |
应用自启动
- 如果不想手动启动程序,也可以让程序跟随
Fine一并启动,即自启动
libs.json
- nginx自启动,
command中配置
json
{
"libs": [
{
"name": "nginx",
"nickname": "nginx",
"version": "1.24.0",
"filename": "nginx-1.24.0",
"type": "lib",
"source": "other",
"system": "windows",
"author": "北京凡图科技有限责任公司",
"description": "nginx",
"logo": "nginx.png",
"restart": "bin\\restart.bat",
"progress": "bin\\progress.bat",
"startup": "bin\\startup.bat",
"shutdown": "bin\\shutdown.bat",
"status": "bin\\status.bat"
}
],
"command": [
{
"name": "nginx",
"version": "1.24.0",
"order": 1,
"next": "",
"libs": []
}
]
}apps.json
- desktop自启动,
start中配置
json
{
"apps": [{
"name": "desktop",
"nickname": "desktop",
"version": "1.0",
"filename": "desktop-1.0",
"type": "app",
"source": "static",
"system": "window",
"author": "凡图科技",
"description": "桌面",
"logo": ""
}],
"start": [
{
"name": "desktop",
"version": "1.0"
}
]
}应用卸载
- 删除
conf/libs.json或conf/apps.json内的安装和自启动信息 - 删除
lib和webapps文件夹下,应用程序文件夹