@gmcb/cli 0.5.5 → 0.6.2

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +35 -0
  3. package/lib/actions/build.js +184 -45
  4. package/lib/actions/copy.js +2 -2
  5. package/lib/actions/create.js +2 -3
  6. package/lib/actions/publish.js +67 -38
  7. package/lib/actions/skill.js +2 -3
  8. package/lib/apis/http.d.ts +49 -0
  9. package/lib/apis/http.js +133 -0
  10. package/lib/apis/index.d.ts +116 -0
  11. package/lib/apis/index.js +252 -0
  12. package/lib/bin.js +3 -1
  13. package/lib/commands/option.d.ts +2 -0
  14. package/lib/commands/option.js +2 -1
  15. package/lib/commands/platform.js +1 -1
  16. package/lib/index.d.ts +1 -1
  17. package/lib/index.js +1 -1
  18. package/lib/scripts/app-apk.d.ts +1 -0
  19. package/lib/scripts/app-apk.js +15 -0
  20. package/lib/scripts/app-wgt.d.ts +1 -0
  21. package/lib/scripts/app-wgt.js +15 -0
  22. package/lib/scripts/asar-zip.d.ts +1 -0
  23. package/lib/scripts/asar-zip.js +17 -0
  24. package/lib/scripts/h5-exe.d.ts +1 -0
  25. package/lib/scripts/h5-exe.js +17 -0
  26. package/lib/scripts/h5-zip.d.ts +1 -0
  27. package/lib/scripts/h5-zip.js +15 -0
  28. package/lib/scripts/mp-weixin.d.ts +1 -0
  29. package/lib/scripts/mp-weixin.js +37 -0
  30. package/lib/scripts/publish.d.ts +9 -0
  31. package/lib/scripts/publish.js +112 -0
  32. package/lib/scripts/wgt-zip.d.ts +1 -0
  33. package/lib/scripts/wgt-zip.js +15 -0
  34. package/lib/{actions → utils}/config.d.ts +23 -6
  35. package/lib/{actions → utils}/config.js +19 -17
  36. package/lib/utils/const.d.ts +25 -1
  37. package/lib/utils/const.js +31 -2
  38. package/lib/utils/function.d.ts +2 -0
  39. package/lib/utils/function.js +20 -0
  40. package/lib/utils/index.d.ts +2 -0
  41. package/lib/utils/index.js +2 -0
  42. package/lib/utils/png2ico.d.ts +1 -0
  43. package/lib/utils/png2ico.js +48 -0
  44. package/package.json +8 -4
  45. package/schema.json +35 -3
  46. package/LICENSE +0 -21
package/schema.json CHANGED
@@ -60,7 +60,7 @@
60
60
  "description": "远程路径"
61
61
  }
62
62
  },
63
- "required": ["brand", "type", "path"]
63
+ "required": ["brand", "type"]
64
64
  },
65
65
  "publish": {
66
66
  "type": "object",
@@ -71,7 +71,7 @@
71
71
  "description": "品牌全称"
72
72
  },
73
73
  "brandId": {
74
- "type": ["string", "number"],
74
+ "type": ["string"],
75
75
  "description": "品牌ID"
76
76
  },
77
77
  "channel": {
@@ -99,7 +99,7 @@
99
99
  "description": "远程路径"
100
100
  }
101
101
  },
102
- "required": ["path", "publishType"]
102
+ "required": ["publishType"]
103
103
  },
104
104
  "cos": {
105
105
  "type": "object",
@@ -193,6 +193,14 @@
193
193
  "certpassword": {
194
194
  "type": "string",
195
195
  "description": "打包证书密码"
196
+ },
197
+ "name": {
198
+ "type": "string",
199
+ "description": "导出文件名称,默认为app-release.apk"
200
+ },
201
+ "path": {
202
+ "type": "string",
203
+ "description": "导出路径,默认app/build/outputs/apk/release"
196
204
  }
197
205
  },
198
206
  "required": ["androidpacktype", "certalias", "certfile", "certpassword"]
@@ -220,6 +228,14 @@
220
228
  "certpassword": {
221
229
  "type": "string",
222
230
  "description": "使用自定义证书打包的证书密码"
231
+ },
232
+ "name": {
233
+ "type": "string",
234
+ "description": "导出文件名称,默认为app-release.ipa"
235
+ },
236
+ "path": {
237
+ "type": "string",
238
+ "description": "导出路径,默认app/release"
223
239
  }
224
240
  },
225
241
  "required": ["supporteddevice", "profile", "certfile", "certpassword"]
@@ -310,6 +326,14 @@
310
326
  "appid": {
311
327
  "type": "string",
312
328
  "description": "应用ID"
329
+ },
330
+ "name": {
331
+ "type": "string",
332
+ "description": "导出文件名称,默认为app-release.exe"
333
+ },
334
+ "path": {
335
+ "type": "string",
336
+ "description": "导出路径,默认dist"
313
337
  }
314
338
  }
315
339
  },
@@ -320,6 +344,14 @@
320
344
  "appid": {
321
345
  "type": "string",
322
346
  "description": "应用ID"
347
+ },
348
+ "name": {
349
+ "type": "string",
350
+ "description": "导出文件名称,默认为app-release.dmg"
351
+ },
352
+ "path": {
353
+ "type": "string",
354
+ "description": "导出路径,默认dist"
323
355
  }
324
356
  }
325
357
  },
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.