master/develop 共用 release 轨(App_Store 打包构建号自增),feature 分支走
feature 轨(构建号永不自增,始终使用手填值),两条轨道的 App_Ver 各自独立。
- versions 改为 tracks 结构,旧的单轨/单值配置在加载时自动迁移进 release 轨
- 新增 config["branch_track"] 记录分支归属,缺省按分支名推断,可在分支管理页改
- 新增 PUT /api/config/branches/track;分支名含 / 时走请求体而非路径参数
- 修复 DELETE /api/config/branches/{name} 无法删除含 / 的分支(405)
- 版本号接口不再对普通用户开放,打包设置页整页改为管理员可见
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
80 lines
2.0 KiB
JSON
80 lines
2.0 KiB
JSON
{
|
|
"apps": {
|
|
"1": {
|
|
"name": "示例应用",
|
|
"server": "测试环境",
|
|
"API": "https://api3-dev.example.com",
|
|
"AppGuid": "00000000-0000-0000-0000-000000000000",
|
|
"AssDom": "applinks:dev-data1.example.com",
|
|
"UniversalLink": "https://dev-data1.example.com",
|
|
"upload_key": "example_app",
|
|
"tencent": "",
|
|
"weixinlogin": "",
|
|
"weixinpay": "",
|
|
"skins": ["default.zip"],
|
|
"certificates": {
|
|
"Ad_Hoc": {
|
|
"name": "com.example.app",
|
|
"cer": "证书名称或标识",
|
|
"pro": "描述文件名称",
|
|
"theme": "default"
|
|
},
|
|
"App_Store": {
|
|
"name": "com.example.app",
|
|
"cer": "证书名称或标识",
|
|
"pro": "描述文件名称",
|
|
"theme": "default"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"schemes": {
|
|
"1": { "name": "readoor31", "ossFloder": "readoor" }
|
|
},
|
|
"servers": {
|
|
"测试环境": {
|
|
"api": "https://api3-dev.example.com",
|
|
"assDom": "applinks:dev-data1.example.com",
|
|
"universalLink": "https://dev-data1.example.com",
|
|
"app_id_prefix": 1
|
|
},
|
|
"正式环境": {
|
|
"api": "https://api3.example.com",
|
|
"assDom": "applinks:data1.example.com",
|
|
"universalLink": "https://data1.example.com",
|
|
"app_id_prefix": 2
|
|
}
|
|
},
|
|
"next_app_id_prefix": 3,
|
|
"branches": ["master", "develop"],
|
|
"upload": {
|
|
"mode": "webdav",
|
|
"oss": {
|
|
"access_key_id": "",
|
|
"access_key_secret": "",
|
|
"endpoint": "",
|
|
"bucket_name": "",
|
|
"base_url": ""
|
|
},
|
|
"webdav": {
|
|
"server_url": "",
|
|
"username": "",
|
|
"password": "",
|
|
"base_path": "",
|
|
"public_url": ""
|
|
},
|
|
"dingtalk": {
|
|
"enabled": false,
|
|
"webhook_url": "",
|
|
"secret": ""
|
|
}
|
|
},
|
|
"versions": {
|
|
"tracks": {
|
|
"release": { "app_ver": "2.180.0", "build_map": {} },
|
|
"feature": { "app_ver": "2.180.0", "build_map": {} }
|
|
}
|
|
},
|
|
"branch_track": { "master": "release", "develop": "release" }
|
|
}
|