@gmcb/cli 0.1.10 → 0.2.1
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 +19 -0
- package/lib/actions/config.d.ts +8 -0
- package/lib/actions/publish.js +90 -20
- package/package.json +2 -2
- package/schema.json +296 -292
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.1](https://git.keeprisk.cn/zhifuqihuang/platform-web/front-end/compare/@gmcb/cli@0.2.0...@gmcb/cli@0.2.1) (2025-10-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [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)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* update ([277c76d](https://git.keeprisk.cn/zhifuqihuang/platform-web/front-end/commits/277c76dbd93e0896af0abb7632b8cde4235eb594))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [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
26
|
|
|
8
27
|
**Note:** Version bump only for package @gmcb/cli
|
package/lib/actions/config.d.ts
CHANGED
|
@@ -42,6 +42,13 @@ interface Mp {
|
|
|
42
42
|
privatekey?: string;
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
+
interface Publish {
|
|
46
|
+
brand: string;
|
|
47
|
+
type: string;
|
|
48
|
+
path: string;
|
|
49
|
+
status?: string;
|
|
50
|
+
platform?: string;
|
|
51
|
+
}
|
|
45
52
|
interface H5 {
|
|
46
53
|
}
|
|
47
54
|
export interface BaseConfig {
|
|
@@ -54,6 +61,7 @@ export interface Config extends BaseConfig {
|
|
|
54
61
|
app?: App;
|
|
55
62
|
mp?: Mp;
|
|
56
63
|
h5?: H5;
|
|
64
|
+
pub?: Publish;
|
|
57
65
|
}
|
|
58
66
|
export declare function getConfig(): BaseConfig;
|
|
59
67
|
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 pub = { platform: 0, status: 0 };
|
|
29
|
+
if (opts.platform?.startsWith('app')) {
|
|
30
|
+
if (!config.pub?.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
|
+
pub.platform = platform;
|
|
66
|
+
}
|
|
67
|
+
if (!config.pub?.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
|
+
pub.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 (pub.platform) {
|
|
128
|
+
commands.push(`PUBLISH_PLATFORM=${pub.platform}`);
|
|
129
|
+
}
|
|
130
|
+
if (pub.status) {
|
|
131
|
+
commands.push(`PUBLISH_STATUS=${pub.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.1
|
|
3
|
+
"version": "0.2.1",
|
|
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": "d7deeba854598dac42edec03e0d0e68ab12488ec"
|
|
58
58
|
}
|
package/schema.json
CHANGED
|
@@ -1,292 +1,296 @@
|
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
"type": "string",
|
|
67
|
-
"description": "秘钥
|
|
68
|
-
},
|
|
69
|
-
"
|
|
70
|
-
"type": "string",
|
|
71
|
-
"description": "
|
|
72
|
-
},
|
|
73
|
-
"
|
|
74
|
-
"type": "string",
|
|
75
|
-
"description": "
|
|
76
|
-
},
|
|
77
|
-
"
|
|
78
|
-
"type": "string",
|
|
79
|
-
"description": "
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
"
|
|
93
|
-
"type": "boolean",
|
|
94
|
-
"description": "
|
|
95
|
-
},
|
|
96
|
-
"
|
|
97
|
-
"type": "boolean",
|
|
98
|
-
"description": "
|
|
99
|
-
},
|
|
100
|
-
"
|
|
101
|
-
"type": "boolean",
|
|
102
|
-
"description": "
|
|
103
|
-
},
|
|
104
|
-
"
|
|
105
|
-
"type": "boolean",
|
|
106
|
-
"description": "
|
|
107
|
-
},
|
|
108
|
-
"
|
|
109
|
-
"type": "boolean",
|
|
110
|
-
"description": "
|
|
111
|
-
},
|
|
112
|
-
"
|
|
113
|
-
"type": "boolean",
|
|
114
|
-
"description": "
|
|
115
|
-
},
|
|
116
|
-
"
|
|
117
|
-
"type": "
|
|
118
|
-
"description": "
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
"
|
|
125
|
-
"type": "
|
|
126
|
-
"description": "
|
|
127
|
-
},
|
|
128
|
-
"
|
|
129
|
-
"type": "
|
|
130
|
-
"description": "
|
|
131
|
-
},
|
|
132
|
-
"
|
|
133
|
-
"type": "string",
|
|
134
|
-
"description": "
|
|
135
|
-
},
|
|
136
|
-
"
|
|
137
|
-
"type": "string",
|
|
138
|
-
"description": "
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
"
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
"
|
|
152
|
-
"type": "string",
|
|
153
|
-
"description": "
|
|
154
|
-
},
|
|
155
|
-
"
|
|
156
|
-
"type": "string",
|
|
157
|
-
"description": "
|
|
158
|
-
},
|
|
159
|
-
"
|
|
160
|
-
"type": "string",
|
|
161
|
-
"description": "使用自定义证书打包的
|
|
162
|
-
},
|
|
163
|
-
"
|
|
164
|
-
"type": "string",
|
|
165
|
-
"description": "
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
"
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
"
|
|
179
|
-
"type": "string",
|
|
180
|
-
"description": "
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
"
|
|
193
|
-
"type": "string",
|
|
194
|
-
"description": "
|
|
195
|
-
},
|
|
196
|
-
"
|
|
197
|
-
"type": "string",
|
|
198
|
-
"description": "
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
"
|
|
215
|
-
"type": "
|
|
216
|
-
"description": "
|
|
217
|
-
},
|
|
218
|
-
"
|
|
219
|
-
"type": "
|
|
220
|
-
"description": "
|
|
221
|
-
},
|
|
222
|
-
"
|
|
223
|
-
"type": "string",
|
|
224
|
-
"description": "
|
|
225
|
-
},
|
|
226
|
-
"
|
|
227
|
-
"type": "string",
|
|
228
|
-
"description": "
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
"
|
|
241
|
-
"type": "string",
|
|
242
|
-
"description": "
|
|
243
|
-
},
|
|
244
|
-
"
|
|
245
|
-
"type": "string",
|
|
246
|
-
"description": "
|
|
247
|
-
},
|
|
248
|
-
"
|
|
249
|
-
"type": "string",
|
|
250
|
-
"description": "使用自定义证书打包的
|
|
251
|
-
},
|
|
252
|
-
"
|
|
253
|
-
"type": "string",
|
|
254
|
-
"description": "
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
"
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
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
|
+
"web": {
|
|
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
|
+
"pub": {
|
|
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
|
+
"path": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"description": "远程路径"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"required": ["brandName", "type", "path"]
|
|
60
|
+
},
|
|
61
|
+
"cos": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"description": "腾讯云对象存储配置",
|
|
64
|
+
"properties": {
|
|
65
|
+
"secretid": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"description": "秘钥id"
|
|
68
|
+
},
|
|
69
|
+
"secretkey": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "秘钥key"
|
|
72
|
+
},
|
|
73
|
+
"bucket": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"description": "存储桶名称"
|
|
76
|
+
},
|
|
77
|
+
"region": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"description": "所属地域,例如ap-nanjing"
|
|
80
|
+
},
|
|
81
|
+
"path": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"description": "上传远程目录,默认/"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"required": ["bucket", "region"]
|
|
87
|
+
},
|
|
88
|
+
"app": {
|
|
89
|
+
"type": "object",
|
|
90
|
+
"description": "app配置",
|
|
91
|
+
"properties": {
|
|
92
|
+
"iscustom": {
|
|
93
|
+
"type": "boolean",
|
|
94
|
+
"description": "是否使用自定义基座"
|
|
95
|
+
},
|
|
96
|
+
"safemode": {
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"description": "是否为安心打包"
|
|
99
|
+
},
|
|
100
|
+
"isconfusion": {
|
|
101
|
+
"type": "boolean",
|
|
102
|
+
"description": "是否对配置的js/nvue文件进行原生混淆"
|
|
103
|
+
},
|
|
104
|
+
"splashads": {
|
|
105
|
+
"type": "boolean",
|
|
106
|
+
"description": "是否开启开屏广告"
|
|
107
|
+
},
|
|
108
|
+
"rpads": {
|
|
109
|
+
"type": "boolean",
|
|
110
|
+
"description": "是否开启悬浮红包广告"
|
|
111
|
+
},
|
|
112
|
+
"pushads": {
|
|
113
|
+
"type": "boolean",
|
|
114
|
+
"description": "是否开启推送广告"
|
|
115
|
+
},
|
|
116
|
+
"exchange": {
|
|
117
|
+
"type": "boolean",
|
|
118
|
+
"description": "是否加入换量联盟"
|
|
119
|
+
},
|
|
120
|
+
"android": {
|
|
121
|
+
"type": "object",
|
|
122
|
+
"description": "android配置",
|
|
123
|
+
"properties": {
|
|
124
|
+
"packagename": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"description": "包名"
|
|
127
|
+
},
|
|
128
|
+
"androidpacktype": {
|
|
129
|
+
"type": "integer",
|
|
130
|
+
"description": "打包类型,0 使用自有证书 1 使用公共证书 2 使用DCloud老版证书"
|
|
131
|
+
},
|
|
132
|
+
"certalias": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"description": "打包证书别名"
|
|
135
|
+
},
|
|
136
|
+
"certfile": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"description": "打包证书文件路径"
|
|
139
|
+
},
|
|
140
|
+
"certpassword": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"description": "打包证书密码"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"required": ["packagename", "androidpacktype", "certalias", "certfile", "certpassword"]
|
|
146
|
+
},
|
|
147
|
+
"ios": {
|
|
148
|
+
"type": "object",
|
|
149
|
+
"description": "ios配置",
|
|
150
|
+
"properties": {
|
|
151
|
+
"bundle": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"description": "包名"
|
|
154
|
+
},
|
|
155
|
+
"supporteddevice": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"description": "打包支持的设备类型,值有\"iPhone\",\"iPad\" 如果要打多个逗号隔开打包平台"
|
|
158
|
+
},
|
|
159
|
+
"profile": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"description": "使用自定义证书打包的profile文件路径"
|
|
162
|
+
},
|
|
163
|
+
"certfile": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"description": "使用自定义证书打包的p12文件路径"
|
|
166
|
+
},
|
|
167
|
+
"certpassword": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"description": "使用自定义证书打包的证书密码"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"required": ["bundle", "supporteddevice", "profile", "certfile", "certpassword"]
|
|
173
|
+
},
|
|
174
|
+
"wgt": {
|
|
175
|
+
"type": "object",
|
|
176
|
+
"description": "移动应用热更新资源配置",
|
|
177
|
+
"properties": {
|
|
178
|
+
"name": {
|
|
179
|
+
"type": "string",
|
|
180
|
+
"description": "导出文件名称,例如app.wgt,默认为[appid].wgt"
|
|
181
|
+
},
|
|
182
|
+
"path": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"description": "导出路径,默认unpackage/release"
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"zip": {
|
|
189
|
+
"type": "object",
|
|
190
|
+
"description": "桌面应用热更新资源配置",
|
|
191
|
+
"properties": {
|
|
192
|
+
"name": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"description": "导出文件名称,例如app.zip,默认为[name].zip"
|
|
195
|
+
},
|
|
196
|
+
"path": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"description": "导出路径,默认unpackage/release"
|
|
199
|
+
},
|
|
200
|
+
"source": {
|
|
201
|
+
"type": "string",
|
|
202
|
+
"description": "资源路径,默认dist/win-unpacked/resources"
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"custom": {
|
|
207
|
+
"type": "object",
|
|
208
|
+
"description": "自定义基座配置",
|
|
209
|
+
"properties": {
|
|
210
|
+
"android": {
|
|
211
|
+
"type": "object",
|
|
212
|
+
"description": "android配置",
|
|
213
|
+
"properties": {
|
|
214
|
+
"packagename": {
|
|
215
|
+
"type": "string",
|
|
216
|
+
"description": "包名"
|
|
217
|
+
},
|
|
218
|
+
"androidpacktype": {
|
|
219
|
+
"type": "integer",
|
|
220
|
+
"description": "打包类型,0 使用自有证书 1 使用公共证书 2 使用DCloud老版证书"
|
|
221
|
+
},
|
|
222
|
+
"certalias": {
|
|
223
|
+
"type": "string",
|
|
224
|
+
"description": "打包证书别名"
|
|
225
|
+
},
|
|
226
|
+
"certfile": {
|
|
227
|
+
"type": "string",
|
|
228
|
+
"description": "打包证书文件路径"
|
|
229
|
+
},
|
|
230
|
+
"certpassword": {
|
|
231
|
+
"type": "string",
|
|
232
|
+
"description": "打包证书密码"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"ios": {
|
|
237
|
+
"type": "object",
|
|
238
|
+
"description": "ios配置",
|
|
239
|
+
"properties": {
|
|
240
|
+
"bundle": {
|
|
241
|
+
"type": "string",
|
|
242
|
+
"description": "包名"
|
|
243
|
+
},
|
|
244
|
+
"supporteddevice": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"description": "打包支持的设备类型,值有\"iPhone\",\"iPad\" 如果要打多个逗号隔开打包平台"
|
|
247
|
+
},
|
|
248
|
+
"profile": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"description": "使用自定义证书打包的profile文件路径"
|
|
251
|
+
},
|
|
252
|
+
"certfile": {
|
|
253
|
+
"type": "string",
|
|
254
|
+
"description": "使用自定义证书打包的p12文件路径"
|
|
255
|
+
},
|
|
256
|
+
"certpassword": {
|
|
257
|
+
"type": "string",
|
|
258
|
+
"description": "使用自定义证书打包的证书密码"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"required": ["profile", "certfile"]
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"mp": {
|
|
268
|
+
"type": "object",
|
|
269
|
+
"description": "小程序配置",
|
|
270
|
+
"properties": {
|
|
271
|
+
"weixin": {
|
|
272
|
+
"type": "object",
|
|
273
|
+
"description": "微信小程序配置",
|
|
274
|
+
"properties": {
|
|
275
|
+
"privatekey": {
|
|
276
|
+
"type": "string",
|
|
277
|
+
"description": "代码上传密钥文件"
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"required": ["privatekey"]
|
|
281
|
+
},
|
|
282
|
+
"alipay": {
|
|
283
|
+
"type": "object",
|
|
284
|
+
"description": "支付宝小程序配置",
|
|
285
|
+
"properties": {
|
|
286
|
+
"privatekey": {
|
|
287
|
+
"type": "string",
|
|
288
|
+
"description": "代码上传密钥文件"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"required": ["privatekey"]
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|