跳转至

APP安装包规范


开发者在发布Hosted APP应用过程中,上传的APP安装包,必须满足如下定义规范,方可上传成功。

APP安装包结构

安装包格式须为 zip 压缩包格式。说明如下:

【下载安装包模板文件】

├── Demo_Package.zip
   ├── app.yaml (required)(APP基础信息文件)
       ├── apiVersion: v2alpha1 (required)(APP依赖supOS Open API 版本号)
       ├── vendorName: exampleESS (required)(APP所属实例环境名称)
       ├── name: demo1 (required)(APP应用名称)
       ├── appVersion: 1.0 (required)(APP版本号)
       ├── description: APP (optional)(描述信息)
       ├── doc: /statics/README.md (optional)(其他信息)
       ├── icon: /statics/app.png (optional)(APP图标)
       └── ... ...
   ├── vendor.yaml (required)(开发者信息文件,)
       ├── apiVersion: v2alpha1 (required)(APP依赖supOS Open API 版本号)
       ├── vendor: (required)(开发者信息其下信息由APP上架审核通过后自动写入)
           ├── bluetronId: abcdefghijklmn (optional)(蓝卓开发者帐号 Bluetron ID)
           ├── organization: bluetron (optional)(开发者所属公司)
           ├── url: https://www.supos.com  (optional)(企业开发者所属公司官网)
           ├── email: admin@supos.com (optional)(联系邮箱)
           ├── copyright: bluetron (c) 2020 (optional)(备案信息)
           ├── address: 309F22 (optional)(联系地址)
           ├── phone: 0571-8888 8888 (optional)(联系电话)
           └── ... ...
   ├── compose.yaml (required)(容器编排文件文件内容可为空)
   ├── dependencies.yaml (required)(服务依赖配置文件文件内容可为空)
   ├── secret.yaml (required)(帐号等相关信息文件内容可为空)
   ├── config.ini (required)(APP运行配置文件)
   ├── build.yaml (required)(构建配置文件用于指导构建过程)
   ├── data/ (required)(数据目录)
       ├── resource.yaml(菜单资源描述文件)
       ├── metadata.zip(组态对象模型视图菜单等)
       ├── flow.zip(组态工作流配置)
       └── ... ...
   └── static/ (required)(静态资源目录)
       ├── snapshots/(视图缩微图目录)
       ├── 用户上传资源由用户自行定义
       └── ... ...
   ├── bin/ (required)(启动构建目录目录可为空)
       ├── Dockerfile(Docker镜像构建描述文件)
       ├── ***.jar / ***.war(各种可执行文件)
       └── ... ...
   └── ... ...