您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

28 行
801 B

engine_path=$(pwd)
runtime_mode=release
architecture=""
while getopts ":r:m:a:" opt
do
case $opt in
r)
engine_path=$OPTARG # set engine_path, depot_tools and flutter engine folder will be put into this path
;;
m)
runtime_mode=$OPTARG
;;
a)
architecture=$OPTARG
;;
?)
echo "unknown param"
exit 1;;
esac
done
if [ $architecture = "arm64" ]; then
python3 lib_build.py -r $engine_path -p android -m $runtime_mode --arm64
elif [ ! $architecture ] || [ $architecture = "arm32" ]; then
python3 lib_build.py -r $engine_path -p android -m $runtime_mode
else
echo "If you want to build android arm64, please enter '-a arm64'. \Without entering this, it will build android arm32 by default"
fi