@gmcb/cli 0.1.10 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/lib/actions/config.d.ts +7 -0
- package/lib/actions/publish.js +90 -20
- package/package.json +2 -2
- package/schema.json +292 -292
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.2.0](https://git.keeprisk.cn/zhifuqihuang/platform-web/front-end/compare/@gmcb/cli@0.1.10...@gmcb/cli@0.2.0) (2025-10-06)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* update ([277c76d](https://git.keeprisk.cn/zhifuqihuang/platform-web/front-end/commits/277c76dbd93e0896af0abb7632b8cde4235eb594))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.1.10](https://git.keeprisk.cn/zhifuqihuang/platform-web/front-end/compare/@gmcb/cli@0.1.9...@gmcb/cli@0.1.10) (2025-10-06)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @gmcb/cli
|
package/lib/actions/config.d.ts
CHANGED
|
@@ -42,6 +42,12 @@ interface Mp {
|
|
|
42
42
|
privatekey?: string;
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
+
interface Version {
|
|
46
|
+
brand: string;
|
|
47
|
+
type: string;
|
|
48
|
+
status?: string;
|
|
49
|
+
platform?: string;
|
|
50
|
+
}
|
|
45
51
|
interface H5 {
|
|
46
52
|
}
|
|
47
53
|
export interface BaseConfig {
|
|
@@ -54,6 +60,7 @@ export interface Config extends BaseConfig {
|
|
|
54
60
|
app?: App;
|
|
55
61
|
mp?: Mp;
|
|
56
62
|
h5?: H5;
|
|
63
|
+
version?: Version;
|
|
57
64
|
}
|
|
58
65
|
export declare function getConfig(): BaseConfig;
|
|
59
66
|
export declare function getLocalConfig(): Config;
|
package/lib/actions/publish.js
CHANGED
|
@@ -9,7 +9,13 @@ const path_1 = require("path");
|
|
|
9
9
|
const inquirer_1 = __importDefault(require("inquirer"));
|
|
10
10
|
const utils_1 = require("../utils");
|
|
11
11
|
const build_1 = __importDefault(require("./build"));
|
|
12
|
+
const config_1 = require("./config");
|
|
12
13
|
async function default_1(...args) {
|
|
14
|
+
if (!(0, fs_1.existsSync)((0, path_1.join)(utils_1.COMMAND_PATH, 'node_modules/@gmcb/publish'))) {
|
|
15
|
+
utils_1.log.error('缺少必要的依赖,请执行“npm i @gmcb/publish -D”安装依赖!');
|
|
16
|
+
}
|
|
17
|
+
const config = (0, config_1.getMergeConfig)();
|
|
18
|
+
const opts = args[0];
|
|
13
19
|
const { start } = await inquirer_1.default.prompt({
|
|
14
20
|
type: 'confirm',
|
|
15
21
|
message: '您当前正在执行发布操作,是否继续?',
|
|
@@ -19,6 +25,70 @@ async function default_1(...args) {
|
|
|
19
25
|
if (!start) {
|
|
20
26
|
process.exit(1);
|
|
21
27
|
}
|
|
28
|
+
const version = { platform: 0, status: 0 };
|
|
29
|
+
if (opts.platform?.startsWith('app')) {
|
|
30
|
+
if (!config.version?.platform) {
|
|
31
|
+
const { platform } = await inquirer_1.default.prompt([
|
|
32
|
+
{
|
|
33
|
+
type: 'list',
|
|
34
|
+
name: 'platform',
|
|
35
|
+
message: '请选择要发布的平台',
|
|
36
|
+
choices: opts.wgt
|
|
37
|
+
? [
|
|
38
|
+
{
|
|
39
|
+
name: 'AndroidOS',
|
|
40
|
+
value: 1,
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'IOS',
|
|
44
|
+
value: 2,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'HarmonyOS',
|
|
48
|
+
value: 3,
|
|
49
|
+
},
|
|
50
|
+
]
|
|
51
|
+
: opts.zip
|
|
52
|
+
? [
|
|
53
|
+
{
|
|
54
|
+
name: 'WindowsOS',
|
|
55
|
+
value: 4,
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: 'MacOS',
|
|
59
|
+
value: 5,
|
|
60
|
+
},
|
|
61
|
+
]
|
|
62
|
+
: [],
|
|
63
|
+
},
|
|
64
|
+
]);
|
|
65
|
+
version.platform = platform;
|
|
66
|
+
}
|
|
67
|
+
if (!config.version?.status) {
|
|
68
|
+
const { status } = await inquirer_1.default.prompt([
|
|
69
|
+
{
|
|
70
|
+
type: 'list',
|
|
71
|
+
name: 'status',
|
|
72
|
+
message: '请选择应用更新状态',
|
|
73
|
+
choices: [
|
|
74
|
+
{
|
|
75
|
+
name: '强制更新',
|
|
76
|
+
value: 4,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: '提示升级',
|
|
80
|
+
value: 3,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: '不提示升级',
|
|
84
|
+
value: 2,
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
]);
|
|
89
|
+
version.status = status;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
22
92
|
const { update } = await inquirer_1.default.prompt({
|
|
23
93
|
type: 'confirm',
|
|
24
94
|
message: '是否已更新版本号?',
|
|
@@ -28,29 +98,24 @@ async function default_1(...args) {
|
|
|
28
98
|
if (!update) {
|
|
29
99
|
process.exit(1);
|
|
30
100
|
}
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
]);
|
|
45
|
-
if (!prompt.publish) {
|
|
101
|
+
const { install } = await inquirer_1.default.prompt({
|
|
102
|
+
type: 'confirm',
|
|
103
|
+
message: '是否需要安装依赖?',
|
|
104
|
+
name: 'install',
|
|
105
|
+
default: true,
|
|
106
|
+
});
|
|
107
|
+
const { publish } = await inquirer_1.default.prompt({
|
|
108
|
+
type: 'confirm',
|
|
109
|
+
message: '是否确定执行发布?',
|
|
110
|
+
name: 'publish',
|
|
111
|
+
default: true,
|
|
112
|
+
});
|
|
113
|
+
if (!publish) {
|
|
46
114
|
process.exit(1);
|
|
47
115
|
}
|
|
48
|
-
if (
|
|
116
|
+
if (install) {
|
|
49
117
|
(0, utils_1.spawnSync)('npm install');
|
|
50
118
|
}
|
|
51
|
-
if (!(0, fs_1.existsSync)((0, path_1.join)(utils_1.COMMAND_PATH, 'node_modules/@gmcb/publish'))) {
|
|
52
|
-
utils_1.log.error('缺少必要的依赖,请执行“npm i @gmcb/publish -D”安装依赖!');
|
|
53
|
-
}
|
|
54
119
|
const cmds = await (0, build_1.default)(...args);
|
|
55
120
|
const commands = cmds.slice(0, 3);
|
|
56
121
|
if (!commands[2].startsWith('BUILD_ENV')) {
|
|
@@ -59,8 +124,13 @@ async function default_1(...args) {
|
|
|
59
124
|
if (!['dev', 'sit', 'uat', 'pre', 'prod'].includes(commands[2].split('=')[1])) {
|
|
60
125
|
utils_1.log.error('没有检测到需要发布的环境,无法完成上传,请切换到dev/sit/uat/pre/master分支再次执行脚本,或者您可以选择手动上传!');
|
|
61
126
|
}
|
|
127
|
+
if (version.platform) {
|
|
128
|
+
commands.push(`VERSION_PLATFORM=${version.platform}`);
|
|
129
|
+
}
|
|
130
|
+
if (version.status) {
|
|
131
|
+
commands.push(`VERSION_STATUS=${version.status}`);
|
|
132
|
+
}
|
|
62
133
|
commands.push('node');
|
|
63
|
-
const opts = args[0];
|
|
64
134
|
const scriptPath = (0, path_1.join)(utils_1.COMMAND_PATH, 'node_modules/@gmcb/publish/lib');
|
|
65
135
|
if (opts.platform?.startsWith('mp')) {
|
|
66
136
|
commands.push((0, path_1.join)(scriptPath, opts.platform));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gmcb/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "工茂草本前端命令行工具",
|
|
5
5
|
"author": "yinjiazeng@163.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"@types/rimraf": "^4.0.5",
|
|
55
55
|
"@types/user-home": "^2.0.2"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "3377b9be9f824cf7fd2d93370d530dac0e7b90c5"
|
|
58
58
|
}
|
package/schema.json
CHANGED
|
@@ -1,292 +1,292 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"properties": {
|
|
5
|
-
"branch": {
|
|
6
|
-
"type": ["boolean", "string"],
|
|
7
|
-
"description": "是否在分支下打包,true表示在当前分支下打包,字符串表示仅在该分支下打包"
|
|
8
|
-
},
|
|
9
|
-
"cli": {
|
|
10
|
-
"type": "object",
|
|
11
|
-
"description": "cli配置",
|
|
12
|
-
"properties": {
|
|
13
|
-
"hbuilderx": {
|
|
14
|
-
"type": "string",
|
|
15
|
-
"description": "hbuilderx cli路径"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"user": {
|
|
20
|
-
"type": "object",
|
|
21
|
-
"description": "管理平台配置",
|
|
22
|
-
"properties": {
|
|
23
|
-
"username": {
|
|
24
|
-
"type": "string",
|
|
25
|
-
"description": "登录用户名"
|
|
26
|
-
},
|
|
27
|
-
"password": {
|
|
28
|
-
"type": "string",
|
|
29
|
-
"description": "登录密码"
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"required": ["username", "password"]
|
|
33
|
-
},
|
|
34
|
-
"version": {
|
|
35
|
-
"type": "object",
|
|
36
|
-
"description": "版本管理配置",
|
|
37
|
-
"properties": {
|
|
38
|
-
"brandName": {
|
|
39
|
-
"type": "string",
|
|
40
|
-
"description": "品牌名称"
|
|
41
|
-
},
|
|
42
|
-
"type": {
|
|
43
|
-
"type": "number",
|
|
44
|
-
"description": "应用类型"
|
|
45
|
-
},
|
|
46
|
-
"status": {
|
|
47
|
-
"type": "number",
|
|
48
|
-
"description": "更新状态"
|
|
49
|
-
},
|
|
50
|
-
"platform": {
|
|
51
|
-
"type": "number",
|
|
52
|
-
"description": "平台类型"
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
"required": ["brandName", "
|
|
56
|
-
},
|
|
57
|
-
"cos": {
|
|
58
|
-
"type": "object",
|
|
59
|
-
"description": "腾讯云对象存储配置",
|
|
60
|
-
"properties": {
|
|
61
|
-
"secretid": {
|
|
62
|
-
"type": "string",
|
|
63
|
-
"description": "秘钥id"
|
|
64
|
-
},
|
|
65
|
-
"secretkey": {
|
|
66
|
-
"type": "string",
|
|
67
|
-
"description": "秘钥key"
|
|
68
|
-
},
|
|
69
|
-
"bucket": {
|
|
70
|
-
"type": "string",
|
|
71
|
-
"description": "存储桶名称"
|
|
72
|
-
},
|
|
73
|
-
"region": {
|
|
74
|
-
"type": "string",
|
|
75
|
-
"description": "所属地域,例如ap-nanjing"
|
|
76
|
-
},
|
|
77
|
-
"path": {
|
|
78
|
-
"type": "string",
|
|
79
|
-
"description": "上传远程目录,默认/"
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
"required": ["bucket", "region"]
|
|
83
|
-
},
|
|
84
|
-
"app": {
|
|
85
|
-
"type": "object",
|
|
86
|
-
"description": "app配置",
|
|
87
|
-
"properties": {
|
|
88
|
-
"iscustom": {
|
|
89
|
-
"type": "boolean",
|
|
90
|
-
"description": "是否使用自定义基座"
|
|
91
|
-
},
|
|
92
|
-
"safemode": {
|
|
93
|
-
"type": "boolean",
|
|
94
|
-
"description": "是否为安心打包"
|
|
95
|
-
},
|
|
96
|
-
"isconfusion": {
|
|
97
|
-
"type": "boolean",
|
|
98
|
-
"description": "是否对配置的js/nvue文件进行原生混淆"
|
|
99
|
-
},
|
|
100
|
-
"splashads": {
|
|
101
|
-
"type": "boolean",
|
|
102
|
-
"description": "是否开启开屏广告"
|
|
103
|
-
},
|
|
104
|
-
"rpads": {
|
|
105
|
-
"type": "boolean",
|
|
106
|
-
"description": "是否开启悬浮红包广告"
|
|
107
|
-
},
|
|
108
|
-
"pushads": {
|
|
109
|
-
"type": "boolean",
|
|
110
|
-
"description": "是否开启推送广告"
|
|
111
|
-
},
|
|
112
|
-
"exchange": {
|
|
113
|
-
"type": "boolean",
|
|
114
|
-
"description": "是否加入换量联盟"
|
|
115
|
-
},
|
|
116
|
-
"android": {
|
|
117
|
-
"type": "object",
|
|
118
|
-
"description": "android配置",
|
|
119
|
-
"properties": {
|
|
120
|
-
"packagename": {
|
|
121
|
-
"type": "string",
|
|
122
|
-
"description": "包名"
|
|
123
|
-
},
|
|
124
|
-
"androidpacktype": {
|
|
125
|
-
"type": "integer",
|
|
126
|
-
"description": "打包类型,0 使用自有证书 1 使用公共证书 2 使用DCloud老版证书"
|
|
127
|
-
},
|
|
128
|
-
"certalias": {
|
|
129
|
-
"type": "string",
|
|
130
|
-
"description": "打包证书别名"
|
|
131
|
-
},
|
|
132
|
-
"certfile": {
|
|
133
|
-
"type": "string",
|
|
134
|
-
"description": "打包证书文件路径"
|
|
135
|
-
},
|
|
136
|
-
"certpassword": {
|
|
137
|
-
"type": "string",
|
|
138
|
-
"description": "打包证书密码"
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
"required": ["packagename", "androidpacktype", "certalias", "certfile", "certpassword"]
|
|
142
|
-
},
|
|
143
|
-
"ios": {
|
|
144
|
-
"type": "object",
|
|
145
|
-
"description": "ios配置",
|
|
146
|
-
"properties": {
|
|
147
|
-
"bundle": {
|
|
148
|
-
"type": "string",
|
|
149
|
-
"description": "包名"
|
|
150
|
-
},
|
|
151
|
-
"supporteddevice": {
|
|
152
|
-
"type": "string",
|
|
153
|
-
"description": "打包支持的设备类型,值有\"iPhone\",\"iPad\" 如果要打多个逗号隔开打包平台"
|
|
154
|
-
},
|
|
155
|
-
"profile": {
|
|
156
|
-
"type": "string",
|
|
157
|
-
"description": "使用自定义证书打包的profile文件路径"
|
|
158
|
-
},
|
|
159
|
-
"certfile": {
|
|
160
|
-
"type": "string",
|
|
161
|
-
"description": "使用自定义证书打包的p12文件路径"
|
|
162
|
-
},
|
|
163
|
-
"certpassword": {
|
|
164
|
-
"type": "string",
|
|
165
|
-
"description": "使用自定义证书打包的证书密码"
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
"required": ["bundle", "supporteddevice", "profile", "certfile", "certpassword"]
|
|
169
|
-
},
|
|
170
|
-
"wgt": {
|
|
171
|
-
"type": "object",
|
|
172
|
-
"description": "移动应用热更新资源配置",
|
|
173
|
-
"properties": {
|
|
174
|
-
"name": {
|
|
175
|
-
"type": "string",
|
|
176
|
-
"description": "导出文件名称,例如app.wgt,默认为[appid].wgt"
|
|
177
|
-
},
|
|
178
|
-
"path": {
|
|
179
|
-
"type": "string",
|
|
180
|
-
"description": "导出路径,默认unpackage/release"
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
"zip": {
|
|
185
|
-
"type": "object",
|
|
186
|
-
"description": "桌面应用热更新资源配置",
|
|
187
|
-
"properties": {
|
|
188
|
-
"name": {
|
|
189
|
-
"type": "string",
|
|
190
|
-
"description": "导出文件名称,例如app.zip,默认为[name].zip"
|
|
191
|
-
},
|
|
192
|
-
"path": {
|
|
193
|
-
"type": "string",
|
|
194
|
-
"description": "导出路径,默认unpackage/release"
|
|
195
|
-
},
|
|
196
|
-
"source": {
|
|
197
|
-
"type": "string",
|
|
198
|
-
"description": "资源路径,默认dist/win-unpacked/resources"
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
"custom": {
|
|
203
|
-
"type": "object",
|
|
204
|
-
"description": "自定义基座配置",
|
|
205
|
-
"properties": {
|
|
206
|
-
"android": {
|
|
207
|
-
"type": "object",
|
|
208
|
-
"description": "android配置",
|
|
209
|
-
"properties": {
|
|
210
|
-
"packagename": {
|
|
211
|
-
"type": "string",
|
|
212
|
-
"description": "包名"
|
|
213
|
-
},
|
|
214
|
-
"androidpacktype": {
|
|
215
|
-
"type": "integer",
|
|
216
|
-
"description": "打包类型,0 使用自有证书 1 使用公共证书 2 使用DCloud老版证书"
|
|
217
|
-
},
|
|
218
|
-
"certalias": {
|
|
219
|
-
"type": "string",
|
|
220
|
-
"description": "打包证书别名"
|
|
221
|
-
},
|
|
222
|
-
"certfile": {
|
|
223
|
-
"type": "string",
|
|
224
|
-
"description": "打包证书文件路径"
|
|
225
|
-
},
|
|
226
|
-
"certpassword": {
|
|
227
|
-
"type": "string",
|
|
228
|
-
"description": "打包证书密码"
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
"ios": {
|
|
233
|
-
"type": "object",
|
|
234
|
-
"description": "ios配置",
|
|
235
|
-
"properties": {
|
|
236
|
-
"bundle": {
|
|
237
|
-
"type": "string",
|
|
238
|
-
"description": "包名"
|
|
239
|
-
},
|
|
240
|
-
"supporteddevice": {
|
|
241
|
-
"type": "string",
|
|
242
|
-
"description": "打包支持的设备类型,值有\"iPhone\",\"iPad\" 如果要打多个逗号隔开打包平台"
|
|
243
|
-
},
|
|
244
|
-
"profile": {
|
|
245
|
-
"type": "string",
|
|
246
|
-
"description": "使用自定义证书打包的profile文件路径"
|
|
247
|
-
},
|
|
248
|
-
"certfile": {
|
|
249
|
-
"type": "string",
|
|
250
|
-
"description": "使用自定义证书打包的p12文件路径"
|
|
251
|
-
},
|
|
252
|
-
"certpassword": {
|
|
253
|
-
"type": "string",
|
|
254
|
-
"description": "使用自定义证书打包的证书密码"
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
"required": ["profile", "certfile"]
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
},
|
|
263
|
-
"mp": {
|
|
264
|
-
"type": "object",
|
|
265
|
-
"description": "小程序配置",
|
|
266
|
-
"properties": {
|
|
267
|
-
"weixin": {
|
|
268
|
-
"type": "object",
|
|
269
|
-
"description": "微信小程序配置",
|
|
270
|
-
"properties": {
|
|
271
|
-
"privatekey": {
|
|
272
|
-
"type": "string",
|
|
273
|
-
"description": "代码上传密钥文件"
|
|
274
|
-
}
|
|
275
|
-
},
|
|
276
|
-
"required": ["privatekey"]
|
|
277
|
-
},
|
|
278
|
-
"alipay": {
|
|
279
|
-
"type": "object",
|
|
280
|
-
"description": "支付宝小程序配置",
|
|
281
|
-
"properties": {
|
|
282
|
-
"privatekey": {
|
|
283
|
-
"type": "string",
|
|
284
|
-
"description": "代码上传密钥文件"
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
"required": ["privatekey"]
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"branch": {
|
|
6
|
+
"type": ["boolean", "string"],
|
|
7
|
+
"description": "是否在分支下打包,true表示在当前分支下打包,字符串表示仅在该分支下打包"
|
|
8
|
+
},
|
|
9
|
+
"cli": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"description": "cli配置",
|
|
12
|
+
"properties": {
|
|
13
|
+
"hbuilderx": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "hbuilderx cli路径"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"user": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"description": "管理平台配置",
|
|
22
|
+
"properties": {
|
|
23
|
+
"username": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "登录用户名"
|
|
26
|
+
},
|
|
27
|
+
"password": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "登录密码"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"required": ["username", "password"]
|
|
33
|
+
},
|
|
34
|
+
"version": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"description": "版本管理配置",
|
|
37
|
+
"properties": {
|
|
38
|
+
"brandName": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "品牌名称"
|
|
41
|
+
},
|
|
42
|
+
"type": {
|
|
43
|
+
"type": "number",
|
|
44
|
+
"description": "应用类型"
|
|
45
|
+
},
|
|
46
|
+
"status": {
|
|
47
|
+
"type": "number",
|
|
48
|
+
"description": "更新状态"
|
|
49
|
+
},
|
|
50
|
+
"platform": {
|
|
51
|
+
"type": "number",
|
|
52
|
+
"description": "平台类型"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": ["brandName", "type"]
|
|
56
|
+
},
|
|
57
|
+
"cos": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"description": "腾讯云对象存储配置",
|
|
60
|
+
"properties": {
|
|
61
|
+
"secretid": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"description": "秘钥id"
|
|
64
|
+
},
|
|
65
|
+
"secretkey": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"description": "秘钥key"
|
|
68
|
+
},
|
|
69
|
+
"bucket": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "存储桶名称"
|
|
72
|
+
},
|
|
73
|
+
"region": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"description": "所属地域,例如ap-nanjing"
|
|
76
|
+
},
|
|
77
|
+
"path": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"description": "上传远程目录,默认/"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"required": ["bucket", "region"]
|
|
83
|
+
},
|
|
84
|
+
"app": {
|
|
85
|
+
"type": "object",
|
|
86
|
+
"description": "app配置",
|
|
87
|
+
"properties": {
|
|
88
|
+
"iscustom": {
|
|
89
|
+
"type": "boolean",
|
|
90
|
+
"description": "是否使用自定义基座"
|
|
91
|
+
},
|
|
92
|
+
"safemode": {
|
|
93
|
+
"type": "boolean",
|
|
94
|
+
"description": "是否为安心打包"
|
|
95
|
+
},
|
|
96
|
+
"isconfusion": {
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"description": "是否对配置的js/nvue文件进行原生混淆"
|
|
99
|
+
},
|
|
100
|
+
"splashads": {
|
|
101
|
+
"type": "boolean",
|
|
102
|
+
"description": "是否开启开屏广告"
|
|
103
|
+
},
|
|
104
|
+
"rpads": {
|
|
105
|
+
"type": "boolean",
|
|
106
|
+
"description": "是否开启悬浮红包广告"
|
|
107
|
+
},
|
|
108
|
+
"pushads": {
|
|
109
|
+
"type": "boolean",
|
|
110
|
+
"description": "是否开启推送广告"
|
|
111
|
+
},
|
|
112
|
+
"exchange": {
|
|
113
|
+
"type": "boolean",
|
|
114
|
+
"description": "是否加入换量联盟"
|
|
115
|
+
},
|
|
116
|
+
"android": {
|
|
117
|
+
"type": "object",
|
|
118
|
+
"description": "android配置",
|
|
119
|
+
"properties": {
|
|
120
|
+
"packagename": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"description": "包名"
|
|
123
|
+
},
|
|
124
|
+
"androidpacktype": {
|
|
125
|
+
"type": "integer",
|
|
126
|
+
"description": "打包类型,0 使用自有证书 1 使用公共证书 2 使用DCloud老版证书"
|
|
127
|
+
},
|
|
128
|
+
"certalias": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"description": "打包证书别名"
|
|
131
|
+
},
|
|
132
|
+
"certfile": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"description": "打包证书文件路径"
|
|
135
|
+
},
|
|
136
|
+
"certpassword": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"description": "打包证书密码"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"required": ["packagename", "androidpacktype", "certalias", "certfile", "certpassword"]
|
|
142
|
+
},
|
|
143
|
+
"ios": {
|
|
144
|
+
"type": "object",
|
|
145
|
+
"description": "ios配置",
|
|
146
|
+
"properties": {
|
|
147
|
+
"bundle": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"description": "包名"
|
|
150
|
+
},
|
|
151
|
+
"supporteddevice": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"description": "打包支持的设备类型,值有\"iPhone\",\"iPad\" 如果要打多个逗号隔开打包平台"
|
|
154
|
+
},
|
|
155
|
+
"profile": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"description": "使用自定义证书打包的profile文件路径"
|
|
158
|
+
},
|
|
159
|
+
"certfile": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"description": "使用自定义证书打包的p12文件路径"
|
|
162
|
+
},
|
|
163
|
+
"certpassword": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"description": "使用自定义证书打包的证书密码"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"required": ["bundle", "supporteddevice", "profile", "certfile", "certpassword"]
|
|
169
|
+
},
|
|
170
|
+
"wgt": {
|
|
171
|
+
"type": "object",
|
|
172
|
+
"description": "移动应用热更新资源配置",
|
|
173
|
+
"properties": {
|
|
174
|
+
"name": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"description": "导出文件名称,例如app.wgt,默认为[appid].wgt"
|
|
177
|
+
},
|
|
178
|
+
"path": {
|
|
179
|
+
"type": "string",
|
|
180
|
+
"description": "导出路径,默认unpackage/release"
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"zip": {
|
|
185
|
+
"type": "object",
|
|
186
|
+
"description": "桌面应用热更新资源配置",
|
|
187
|
+
"properties": {
|
|
188
|
+
"name": {
|
|
189
|
+
"type": "string",
|
|
190
|
+
"description": "导出文件名称,例如app.zip,默认为[name].zip"
|
|
191
|
+
},
|
|
192
|
+
"path": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"description": "导出路径,默认unpackage/release"
|
|
195
|
+
},
|
|
196
|
+
"source": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"description": "资源路径,默认dist/win-unpacked/resources"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"custom": {
|
|
203
|
+
"type": "object",
|
|
204
|
+
"description": "自定义基座配置",
|
|
205
|
+
"properties": {
|
|
206
|
+
"android": {
|
|
207
|
+
"type": "object",
|
|
208
|
+
"description": "android配置",
|
|
209
|
+
"properties": {
|
|
210
|
+
"packagename": {
|
|
211
|
+
"type": "string",
|
|
212
|
+
"description": "包名"
|
|
213
|
+
},
|
|
214
|
+
"androidpacktype": {
|
|
215
|
+
"type": "integer",
|
|
216
|
+
"description": "打包类型,0 使用自有证书 1 使用公共证书 2 使用DCloud老版证书"
|
|
217
|
+
},
|
|
218
|
+
"certalias": {
|
|
219
|
+
"type": "string",
|
|
220
|
+
"description": "打包证书别名"
|
|
221
|
+
},
|
|
222
|
+
"certfile": {
|
|
223
|
+
"type": "string",
|
|
224
|
+
"description": "打包证书文件路径"
|
|
225
|
+
},
|
|
226
|
+
"certpassword": {
|
|
227
|
+
"type": "string",
|
|
228
|
+
"description": "打包证书密码"
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"ios": {
|
|
233
|
+
"type": "object",
|
|
234
|
+
"description": "ios配置",
|
|
235
|
+
"properties": {
|
|
236
|
+
"bundle": {
|
|
237
|
+
"type": "string",
|
|
238
|
+
"description": "包名"
|
|
239
|
+
},
|
|
240
|
+
"supporteddevice": {
|
|
241
|
+
"type": "string",
|
|
242
|
+
"description": "打包支持的设备类型,值有\"iPhone\",\"iPad\" 如果要打多个逗号隔开打包平台"
|
|
243
|
+
},
|
|
244
|
+
"profile": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"description": "使用自定义证书打包的profile文件路径"
|
|
247
|
+
},
|
|
248
|
+
"certfile": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"description": "使用自定义证书打包的p12文件路径"
|
|
251
|
+
},
|
|
252
|
+
"certpassword": {
|
|
253
|
+
"type": "string",
|
|
254
|
+
"description": "使用自定义证书打包的证书密码"
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"required": ["profile", "certfile"]
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"mp": {
|
|
264
|
+
"type": "object",
|
|
265
|
+
"description": "小程序配置",
|
|
266
|
+
"properties": {
|
|
267
|
+
"weixin": {
|
|
268
|
+
"type": "object",
|
|
269
|
+
"description": "微信小程序配置",
|
|
270
|
+
"properties": {
|
|
271
|
+
"privatekey": {
|
|
272
|
+
"type": "string",
|
|
273
|
+
"description": "代码上传密钥文件"
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"required": ["privatekey"]
|
|
277
|
+
},
|
|
278
|
+
"alipay": {
|
|
279
|
+
"type": "object",
|
|
280
|
+
"description": "支付宝小程序配置",
|
|
281
|
+
"properties": {
|
|
282
|
+
"privatekey": {
|
|
283
|
+
"type": "string",
|
|
284
|
+
"description": "代码上传密钥文件"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"required": ["privatekey"]
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|