Skip to content

Commit 83f555e

Browse files
committed
extractApk
1 parent 2030076 commit 83f555e

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

site/pages/docs/cli.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,21 @@ pushy bundle --platform android --name "1.0.0" --description "热更新版本 1.
193193

194194
#### pushy extractApk [aabFile]
195195

196-
从 aab 文件中提取 apk 文件。备注(cli 需 2.6.0 +)
196+
从 aab 文件中提取通用 apk 文件。(cli 需 2.6.0+)
197+
198+
用法:`pushy extractApk aab后缀文件 [--output apk文件] [--includeAllSplits] [--splits 分包名列表]`
199+
200+
- output: 指定导出的 apk 文件路径(默认与 aab 同目录同名 `.apk`
201+
- includeAllSplits: 提取时包含全部 split(默认仅包含 `base`
202+
- splits: 指定额外包含的 split 名称,多个值用英文逗号分隔
203+
204+
示例:
205+
206+
```bash
207+
pushy extractApk android/app/build/outputs/bundle/release/app-release.aab --output app-release.apk
208+
pushy extractApk android/app/build/outputs/bundle/release/app-release.aab --splits config.zh,arm64_v8a
209+
pushy extractApk android/app/build/outputs/bundle/release/app-release.aab --includeAllSplits
210+
```
197211

198212
---
199213

0 commit comments

Comments
 (0)