美文网首页
Mac 快速安装aab文件

Mac 快速安装aab文件

作者: Afra55 | 来源:发表于2022-08-08 17:41 被阅读0次

1. 安装 bundletool

brew install bundletool

2. 创建 aabinstall.sh文件

#!/bin/bash

echo start install $1
rm -f xxxxx.apks

bundletool build-apks --bundle=$1 --output=xxxxx.apks
bundletool install-apks --apks=xxxxx.apks
echo install complete
rm -f xxxxx.apks

3. 将放到合适的目录并设置别名

放到 ~目录并设置别名:

alias aabinstall="~/aabinstall.sh"

可以添加到 .bash_profile 永久生效:

vim ~/.bash_profile

4. 使用

aabinstall xxxx.aab

相关文章

网友评论

      本文标题:Mac 快速安装aab文件

      本文链接:https://www.haomeiwen.com/subject/jtowwrtx.html