1.用brew install bundletool
如果碰到失败
单独用bremetromoneyw在安装
直到安装结束
where bundletool
找出路径
vim bundletool
1. 路径为上图所示
2. 这个为abb包的绝对路径
3. 这个为生成apks包的路径和apks命名
4. 这个需要找开发给的stroe下载之后的绝对路径
5. storePassword
6. keyAlias
7. ncashAlias@20210119
"signingConfig": {
"keyAlias": "ncash",
"keyPassword": "ncashAlias@20210119",
"storeFilePath": "/app/keystore/ncash.keystore",
"storePassword": "ncash@20210119",
"v2SigningEnabled": true
}
生成apks文件:
java -jar /opt/homebrew/Cellar/bundletool/1.13.2/libexec/bundletool-all.jar build-apks --bundle=/Users/cengdechuan/Downloads/aabdown/ncash-release-139.aab --output=/Users/cengdechuan/Downloads/aabdown/ncash-release-139.apks --ks=/Users/cengdechuan/Downloads/ncash.keystore --ks-pass=pass:ncash@20210119 --ks-key-alias=ncash --key-pass=pass:ncashAlias@20210119
安装apks文件:
java -jar /opt/homebrew/Cellar/bundletool/1.13.2/libexec/bundletool-all.jar install-apks --apks=/Users/cengdechuan/Downloads/aabdown/ncash-release-139.apks
每次安装adb包之前都需要把手机里面以前的包给卸载掉再下载
对了需要安装adb才能下载到手机里
连接到设备的情况参考
List of devices attached
W7X6R20421032159 device