@deveco-test/deveco-cli-common 1.3.5-Test.4 → 1.3.6-Test.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/README.md CHANGED
@@ -403,7 +403,7 @@ devecocli auth team list
403
403
  **命令格式:**
404
404
 
405
405
  ```bash
406
- devecocli build --product <product> --modules <modules> --build-mode <mode>
406
+ devecocli build --product <product> --modules <modules> --build-mode <mode> --assemble-type <type> --signing-config <name>
407
407
  ```
408
408
 
409
409
  **参数:**
@@ -413,6 +413,8 @@ devecocli build --product <product> --modules <modules> --build-mode <mode>
413
413
  | --product | 可选,产品的名称,默认为 `default` |
414
414
  | --modules | 可选,模块的名称。如需指定模块的 `target` 信息,使用 `module@target` 形式。当工程中只有一个模块时,可缺省;当工程中存在多个模块,且仅存在一个 `entry` 类型的模块时,可缺省 |
415
415
  | --build-mode | 可选,构建模式,默认为 `debug` |
416
+ | --assemble-type | 可选,构建任务类型:`assembleHap`、`assembleApp`、`assembleHsp`、`assembleHar`。不指定时根据模块类型自动推断 |
417
+ | --signing-config | 可选,指定 `build-profile.json5` 中定义的签名配置名称,覆盖 product 默认关联的签名配置 |
416
418
 
417
419
  **示例:**
418
420
 
@@ -421,6 +423,8 @@ devecocli build --build-mode release
421
423
  devecocli build --modules entry library
422
424
  devecocli build --modules library@phone
423
425
  devecocli build --product oversea --modules entry --build-mode release
426
+ devecocli build --assemble-type assembleHap --build-mode release
427
+ devecocli build --product oversea --modules entry --build-mode release --signing-config default_release
424
428
  ```
425
429
 
426
430
  **说明:**
@@ -428,17 +432,25 @@ devecocli build --product oversea --modules entry --build-mode release
428
432
  - 选定模块的依赖会被自动解析和构建
429
433
  - 执行`devecocli build --product <name>`命令后,产物为 `.app`
430
434
  - 执行`devecocli build --product <name> --modules <m1>`命令后,产物为 `.hap` / `.hsp` / `.har`
435
+ - 构建成功后,控制台会打印所有产物的绝对路径(`.hap` / `.hsp` / `.har` / `.app`),可直接复制使用
431
436
 
432
437
  ### `build clean`
433
438
 
434
- 清理 HarmonyOS 项目的构建产物
439
+ 清理 HarmonyOS 项目的构建产物。默认模块模式(`--mode module`)按模块逐个清理;可指定 `--mode` 和 `--modules` 限定作用域。构建选项(analyze/parallel/incremental/daemon 等)由 `hvigor-config.json5` 的 `execution` 字段控制,与 DevEco Studio 一致。
435
440
 
436
441
  **命令格式:**
437
442
 
438
443
  ```bash
439
- devecocli build clean
444
+ devecocli build clean [--mode <mode>] [--modules <m1> <m2>]
440
445
  ```
441
446
 
447
+ **参数:**
448
+
449
+ | 参数名 | 说明 |
450
+ | --- | --- |
451
+ | `--mode <mode>` | 可选,hvigor `--mode` 值(默认 `module`) |
452
+ | `--modules <modules>` | 可选,限定清理的模块(多个以空格分隔) |
453
+
442
454
  ### `check compat`
443
455
 
444
456
  基于 `DevEco Studio` 自带的 `apkanalyzer-apiscan` 插件,扫描源代码在两个 `SDK` 版本之间的 `API` 变更情况。
@@ -1805,12 +1817,12 @@ devecocli skills remove --skill skillname --agent agentname # skillname需替
1805
1817
 
1806
1818
  ### `signature generate`
1807
1819
 
1808
- 自动生成调试签名材料(包括p12密钥库、csr证书请求文件、p7b配置文件、cer证书文件),并将签名配置写入项目的 `build-profile.json5` 中。
1820
+ 自动生成签名材料(包括p12密钥库、csr证书请求文件、p7b配置文件、cer证书文件),并将签名配置写入项目的 `build-profile.json5` 中。支持生成 `debug` 和 `release` 两种类型的签名。
1809
1821
 
1810
1822
  **命令格式:**
1811
1823
 
1812
1824
  ```bash
1813
- devecocli signature generate --product <product> --team-id <team-id> --force --help
1825
+ devecocli signature generate --product <product> --team-id <team-id> --type <type> --force --help
1814
1826
  ```
1815
1827
 
1816
1828
  **参数:**
@@ -1819,15 +1831,19 @@ devecocli signature generate --product <product> --team-id <team-id> --force --
1819
1831
  |-----------------------|-----------------------------------------|
1820
1832
  | --product \<product\> | 可选,指定product生成签名,默认为 `default` |
1821
1833
  | --team-id \<team-id\> | 可选,指定生效的team-id,默认使用自身作为团队信息 |
1834
+ | --type \<type\> | 可选,签名类型:`debug` 或 `release`,默认为 `debug` |
1822
1835
  | --force | 可选,强制覆盖已存在的证书文件 |
1823
1836
  | --help,--h | 可选,查看帮助信息 |
1824
1837
 
1825
1838
  **示例:**
1826
1839
 
1827
1840
  ```bash
1828
- # 自动生成签名并写入工程配置
1841
+ # 自动生成调试签名并写入工程配置
1829
1842
  devecocli signature generate
1830
1843
 
1844
+ # 生成 release 签名(用于正式发布)
1845
+ devecocli signature generate --type release
1846
+
1831
1847
  # 指定product
1832
1848
  devecocli signature generate --product default
1833
1849