@gmcb/cli 0.2.4 → 0.3.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 +248 -236
- package/README.md +13 -13
- package/lib/actions/build.js +2 -1
- package/lib/utils/function.d.ts +1 -0
- package/lib/utils/function.js +11 -0
- package/package.json +2 -2
- package/schema.json +304 -304
- package/LICENSE +0 -21
package/CHANGELOG.md
CHANGED
|
@@ -3,244 +3,256 @@
|
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @gmcb/cli
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## [0.2.3](https://git.keeprisk.cn/zhifuqihuang/platform-web/front-end/compare/@gmcb/cli@0.2.2...@gmcb/cli@0.2.3) (2025-10-06)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @gmcb/cli
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## [0.2.2](https://git.keeprisk.cn/zhifuqihuang/platform-web/front-end/compare/@gmcb/cli@0.2.1...@gmcb/cli@0.2.2) (2025-10-06)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package @gmcb/cli
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
## [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)
|
|
31
|
-
|
|
32
|
-
**Note:** Version bump only for package @gmcb/cli
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
# [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)
|
|
6
|
+
# [0.3.0](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.2.4...@gmcb/cli@0.3.0) (2026-04-22)
|
|
39
7
|
|
|
40
8
|
|
|
41
9
|
### Features
|
|
42
10
|
|
|
43
|
-
*
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
## [0.
|
|
67
|
-
|
|
68
|
-
**Note:** Version bump only for package @gmcb/cli
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
## [0.1
|
|
75
|
-
|
|
76
|
-
**Note:** Version bump only for package @gmcb/cli
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
## [0.1.
|
|
119
|
-
|
|
120
|
-
**Note:** Version bump only for package @gmcb/cli
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
11
|
+
* 优化使用体验 ([c82d28b](http://10.10.10.16/caoben/front-end/commits/c82d28ba920f857e5edc4865a7a88030b32230c1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## [0.2.4](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.2.3...@gmcb/cli@0.2.4) (2025-11-13)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [0.2.3](https://git.keeprisk.cn/zhifuqihuang/platform-web/front-end/compare/@gmcb/cli@0.2.2...@gmcb/cli@0.2.3) (2025-10-06)
|
|
27
|
+
|
|
28
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## [0.2.2](https://git.keeprisk.cn/zhifuqihuang/platform-web/front-end/compare/@gmcb/cli@0.2.1...@gmcb/cli@0.2.2) (2025-10-06)
|
|
35
|
+
|
|
36
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
## [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)
|
|
43
|
+
|
|
44
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
# [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)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Features
|
|
54
|
+
|
|
55
|
+
* update ([277c76d](https://git.keeprisk.cn/zhifuqihuang/platform-web/front-end/commits/277c76dbd93e0896af0abb7632b8cde4235eb594))
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
## [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)
|
|
62
|
+
|
|
63
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
## [0.1.9](https://git.keeprisk.cn/gmcb/front-end/compare/@gmcb/cli@0.1.8...@gmcb/cli@0.1.9) (2025-08-17)
|
|
70
|
+
|
|
71
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## [0.1.8](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.7...@gmcb/cli@0.1.8) (2025-04-09)
|
|
79
|
+
|
|
80
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## [0.1.7](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.6...@gmcb/cli@0.1.7) (2025-04-08)
|
|
87
|
+
|
|
88
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
## [0.1.6](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.5...@gmcb/cli@0.1.6) (2025-02-25)
|
|
96
|
+
|
|
97
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
## [0.1.5](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.4...@gmcb/cli@0.1.5) (2025-02-24)
|
|
104
|
+
|
|
105
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
## [0.1.4](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.3...@gmcb/cli@0.1.4) (2025-02-23)
|
|
112
|
+
|
|
113
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
## [0.1.3](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.2...@gmcb/cli@0.1.3) (2025-02-23)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
### Bug Fixes
|
|
123
|
+
|
|
124
|
+
* 构建其他项目环境不正确 ([bf3329a](http://10.10.200.92:8090/gmcb/front-end/commits/bf3329afb1d61cd5cc1d6ffbec8e6a8f2ed77e60))
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
## [0.1.2](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.1...@gmcb/cli@0.1.2) (2025-02-23)
|
|
131
|
+
|
|
132
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
## [0.1.1](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.0...@gmcb/cli@0.1.1) (2025-02-23)
|
|
139
|
+
|
|
140
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
# [0.1.0](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.12...@gmcb/cli@0.1.0) (2025-02-23)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
### Features
|
|
150
|
+
|
|
151
|
+
* 新增复制命令 ([ab5e74d](http://10.10.200.92:8090/gmcb/front-end/commits/ab5e74d6236d4b57c1642c3e1abc9da23cb63129))
|
|
152
|
+
* 新增构建桌面应用 ([c1e13cc](http://10.10.200.92:8090/gmcb/front-end/commits/c1e13cc0aa0770be95599f1ab7ad0fa860487cec))
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
## [0.0.12](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.11...@gmcb/cli@0.0.12) (2025-02-18)
|
|
159
|
+
|
|
160
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
## [0.0.11](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.10...@gmcb/cli@0.0.11) (2025-02-18)
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
### Bug Fixes
|
|
170
|
+
|
|
171
|
+
* 正在构建时切换分支导致发布环境错误 ([f024ddb](http://10.10.200.92:8090/gmcb/front-end/commits/f024ddba996fbc48163e4ff5d49c9490058a5361))
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
## [0.0.10](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.9...@gmcb/cli@0.0.10) (2025-02-08)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
### Bug Fixes
|
|
181
|
+
|
|
182
|
+
* hbuilderx未启动时无提示 ([5eb1ccc](http://10.10.200.92:8090/gmcb/front-end/commits/5eb1ccc2e6854dae4cf32aa5de81676e0a568f33))
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
## [0.0.9](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.8...@gmcb/cli@0.0.9) (2025-02-05)
|
|
190
|
+
|
|
191
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
## [0.0.8](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.7...@gmcb/cli@0.0.8) (2025-02-05)
|
|
198
|
+
|
|
199
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
## [0.0.7](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.6...@gmcb/cli@0.0.7) (2025-02-04)
|
|
206
|
+
|
|
207
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
## [0.0.6](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.5...@gmcb/cli@0.0.6) (2025-02-04)
|
|
215
|
+
|
|
216
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
## [0.0.5](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.4...@gmcb/cli@0.0.5) (2025-02-04)
|
|
223
|
+
|
|
224
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
## [0.0.4](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.3...@gmcb/cli@0.0.4) (2025-02-04)
|
|
231
|
+
|
|
232
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
## [0.0.3](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.2...@gmcb/cli@0.0.3) (2025-02-02)
|
|
240
|
+
|
|
241
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
## [0.0.2](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.1...@gmcb/cli@0.0.2) (2025-02-02)
|
|
248
|
+
|
|
249
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
## [0.0.1](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.0-alpha.0...@gmcb/cli@0.0.1) (2025-02-02)
|
|
257
|
+
|
|
246
258
|
**Note:** Version bump only for package @gmcb/cli
|
package/README.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
# @gmcb/cli
|
|
2
|
-
|
|
3
|
-
工茂草本前端命令行工具
|
|
4
|
-
|
|
5
|
-
## 安装
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
npm i @gmcb/cli -g
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## 使用
|
|
12
|
-
```
|
|
13
|
-
gmcb build
|
|
1
|
+
# @gmcb/cli
|
|
2
|
+
|
|
3
|
+
工茂草本前端命令行工具
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
npm i @gmcb/cli -g
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## 使用
|
|
12
|
+
```
|
|
13
|
+
gmcb build
|
|
14
14
|
```
|
package/lib/actions/build.js
CHANGED
|
@@ -175,8 +175,9 @@ async function createZip() {
|
|
|
175
175
|
const spinner = (0, ora_1.default)(`正在生成资源文件...`).start();
|
|
176
176
|
await (0, delay_1.default)(1000);
|
|
177
177
|
const pkg = (0, fs_extra_1.readJsonSync)(utils_1.PACKAGE_PATH);
|
|
178
|
+
const manifest = (0, utils_1.readManifest)();
|
|
178
179
|
const zip = new adm_zip_1.default();
|
|
179
|
-
const name = config.app?.zip?.name
|
|
180
|
+
const name = config.app?.zip?.name || `${manifest['appid'] || pkg.name}.zip`;
|
|
180
181
|
const source = (0, path_1.join)(utils_1.COMMAND_PATH, config.app?.zip?.source ?? 'dist/win-unpacked/resources');
|
|
181
182
|
const dest = (0, path_1.join)(utils_1.COMMAND_PATH, `${config.app?.zip?.path ?? 'unpackage/release'}/${name}`);
|
|
182
183
|
if ((0, fs_1.existsSync)(dest)) {
|
package/lib/utils/function.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare function readManifest(): Record<string, unknown>;
|
|
1
2
|
export declare function objectToCommand(obj?: Record<string, any>): {};
|
|
2
3
|
export declare function filterToArray(obj?: Record<string, any>): any[];
|
|
3
4
|
export declare function spawnSync(command?: string): import("child_process").SpawnSyncReturns<Buffer>;
|
package/lib/utils/function.js
CHANGED
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.readManifest = readManifest;
|
|
6
7
|
exports.objectToCommand = objectToCommand;
|
|
7
8
|
exports.filterToArray = filterToArray;
|
|
8
9
|
exports.spawnSync = spawnSync;
|
|
@@ -11,7 +12,17 @@ const fs_1 = require("fs");
|
|
|
11
12
|
const path_1 = require("path");
|
|
12
13
|
const cross_spawn_1 = __importDefault(require("cross-spawn"));
|
|
13
14
|
const flat_1 = require("flat");
|
|
15
|
+
const strip_json_comments_1 = __importDefault(require("strip-json-comments"));
|
|
14
16
|
const const_1 = require("./const");
|
|
17
|
+
function readManifest() {
|
|
18
|
+
const candidates = [(0, path_1.join)(const_1.COMMAND_PATH, 'src', 'manifest.json'), (0, path_1.join)(const_1.COMMAND_PATH, 'manifest.json')];
|
|
19
|
+
for (const p of candidates) {
|
|
20
|
+
if (!(0, fs_1.existsSync)(p))
|
|
21
|
+
continue;
|
|
22
|
+
return JSON.parse((0, strip_json_comments_1.default)((0, fs_1.readFileSync)(p, 'utf-8')));
|
|
23
|
+
}
|
|
24
|
+
return {};
|
|
25
|
+
}
|
|
15
26
|
function objectToCommand(obj = {}) {
|
|
16
27
|
const object = (0, flat_1.flatten)(obj);
|
|
17
28
|
const res = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gmcb/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.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": "d68532753876cb7e245e04af86270cd768ea00fb"
|
|
58
58
|
}
|
package/schema.json
CHANGED
|
@@ -1,304 +1,304 @@
|
|
|
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
|
-
"brand": {
|
|
39
|
-
"type": "string",
|
|
40
|
-
"description": "品牌名称"
|
|
41
|
-
},
|
|
42
|
-
"type": {
|
|
43
|
-
"type": "number",
|
|
44
|
-
"description": "应用类型,1:医生端、2:门店端、3:患者端"
|
|
45
|
-
},
|
|
46
|
-
"status": {
|
|
47
|
-
"type": "number",
|
|
48
|
-
"description": "更新状态,4:强制更新、3:提示更新、2:不提示更新"
|
|
49
|
-
},
|
|
50
|
-
"platform": {
|
|
51
|
-
"type": "number",
|
|
52
|
-
"description": "平台类型,1:android、2:ios、3:harmonyos、4:windows、5:macos"
|
|
53
|
-
},
|
|
54
|
-
"path": {
|
|
55
|
-
"type": "string",
|
|
56
|
-
"description": "远程路径"
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"required": ["brand", "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
|
-
"type": {
|
|
276
|
-
"type": "string",
|
|
277
|
-
"description": "上传类型"
|
|
278
|
-
},
|
|
279
|
-
"privatekey": {
|
|
280
|
-
"type": "string",
|
|
281
|
-
"description": "代码上传密钥文件"
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
"required": ["privatekey"]
|
|
285
|
-
},
|
|
286
|
-
"alipay": {
|
|
287
|
-
"type": "object",
|
|
288
|
-
"description": "支付宝小程序配置",
|
|
289
|
-
"properties": {
|
|
290
|
-
"type": {
|
|
291
|
-
"type": "string",
|
|
292
|
-
"description": "上传类型"
|
|
293
|
-
},
|
|
294
|
-
"privatekey": {
|
|
295
|
-
"type": "string",
|
|
296
|
-
"description": "代码上传密钥文件"
|
|
297
|
-
}
|
|
298
|
-
},
|
|
299
|
-
"required": ["privatekey"]
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
}
|
|
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
|
+
"brand": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "品牌名称"
|
|
41
|
+
},
|
|
42
|
+
"type": {
|
|
43
|
+
"type": "number",
|
|
44
|
+
"description": "应用类型,1:医生端、2:门店端、3:患者端"
|
|
45
|
+
},
|
|
46
|
+
"status": {
|
|
47
|
+
"type": "number",
|
|
48
|
+
"description": "更新状态,4:强制更新、3:提示更新、2:不提示更新"
|
|
49
|
+
},
|
|
50
|
+
"platform": {
|
|
51
|
+
"type": "number",
|
|
52
|
+
"description": "平台类型,1:android、2:ios、3:harmonyos、4:windows、5:macos"
|
|
53
|
+
},
|
|
54
|
+
"path": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"description": "远程路径"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"required": ["brand", "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
|
+
"type": {
|
|
276
|
+
"type": "string",
|
|
277
|
+
"description": "上传类型"
|
|
278
|
+
},
|
|
279
|
+
"privatekey": {
|
|
280
|
+
"type": "string",
|
|
281
|
+
"description": "代码上传密钥文件"
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"required": ["privatekey"]
|
|
285
|
+
},
|
|
286
|
+
"alipay": {
|
|
287
|
+
"type": "object",
|
|
288
|
+
"description": "支付宝小程序配置",
|
|
289
|
+
"properties": {
|
|
290
|
+
"type": {
|
|
291
|
+
"type": "string",
|
|
292
|
+
"description": "上传类型"
|
|
293
|
+
},
|
|
294
|
+
"privatekey": {
|
|
295
|
+
"type": "string",
|
|
296
|
+
"description": "代码上传密钥文件"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"required": ["privatekey"]
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024 aniu
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|