diff --git a/harmonyos-build-deploy/SKILL.md b/harmonyos-build-deploy/SKILL.md index 0b0d922..1b9987b 100644 --- a/harmonyos-build-deploy/SKILL.md +++ b/harmonyos-build-deploy/SKILL.md @@ -118,7 +118,7 @@ Build only a specific module for faster iteration: hvigorw assembleHap -p module=entry@default --mode module -p buildMode=release --no-daemon # Build single HSP module -hvigorw assembleHsp -p module=feature_module@default --mode module -p buildMode=release --no-daemon +hvigorw assembleHsp -p module=my_feature@default --mode module -p buildMode=release --no-daemon # Build single HAR module hvigorw assembleHar -p module=library@default --mode module -p buildMode=release --no-daemon @@ -128,7 +128,7 @@ hvigorw assembleHsp -p module=module1@default,module2@default --mode module -p b ``` **Module name format:** `{moduleName}@{targetName}` -- `moduleName`: Directory name of the module (e.g., `entry`, `feature_home`) +- `moduleName`: Directory name of the module (e.g., `entry`, `my_feature`) - `targetName`: Target defined in module's `build-profile.json5` (usually `default`) **When to use single module build:** diff --git a/harmonyos-build-deploy/references/module-discovery.md b/harmonyos-build-deploy/references/module-discovery.md index 3850bdb..481305b 100644 --- a/harmonyos-build-deploy/references/module-discovery.md +++ b/harmonyos-build-deploy/references/module-discovery.md @@ -22,8 +22,8 @@ All modules are defined in `build-profile.json5` at the project root, in the `mo ] }, { - "name": "support_http", - "srcPath": "./support/support_http", + "name": "my_library", + "srcPath": "./library/my_library", "targets": [...] } ] @@ -89,15 +89,15 @@ Module build outputs are located at: ### Example -For module `support_http` with `srcPath: "./support/support_http"`: +For module `my_library` with `srcPath: "./library/my_library"`: ``` -support/support_http/build/default/outputs/default/ -├── support_http-default-signed.hsp ← Signed, ready to install -├── support_http-default-unsigned.hsp -├── support_http.har +library/my_library/build/default/outputs/default/ +├── my_library-default-signed.hsp ← Signed, ready to install +├── my_library-default-unsigned.hsp +├── my_library.har ├── app/ -│ └── support_http-default.hsp +│ └── my_library-default.hsp ├── mapping/ │ └── sourceMaps.map └── pack.info