代码拉取完成,页面将自动刷新
同步操作将从 yelang1991/hongxinyoupin 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/bash
cmd="sh -x gradlew "
isPatch=false
if [ "$1" == "clean" ]; then
cmd=${cmd}"clean"
echo "执行清除构建缓存指令"
eval $cmd
exit
fi
if [ "$1" == "release" ]; then
if [ "$2" == "channels" ]; then
cmd=${cmd}"assembleReleaseChannels"
else
if [ "$2" == "" ]; then
echo "请指定渠道名称!"
exit
else
cmd=${cmd}"assembleReleaseChannels -PchannelList=$2"
fi
fi
elif [ "$1" == "debug" ]; then
if [ "$2" == "channels" ]; then
cmd=${cmd}"assembleDebugChannels"
else
if [ "$2" == "" ]; then
echo "请指定渠道名称!"
exit
else
cmd=${cmd}"assembleDebugChannels -PchannelList=$2"
fi
fi
elif [ "$1" == "patch" ]; then
isPatch=true
if [ "$2" == "debug" ]; then
cmd=${cmd}"buildTinkerPatchDebug"
else
cmd=${cmd}"buildTinkerPatchRelease"
fi
currentDir=$(pwd)
patchDir=${currentDir}"/app/build/outputs/patch"
destDir=${currentDir}"/output/patch"
cmd=${cmd}" && mkdir -p $destDir && cp -R $patchDir/* $destDir"
else
echo "请指定Build Type (1、debug,2、release)"
exit
fi
echo -e "\n\n\n-------------------------------------------------------\n"
if [ ${isPatch} == true ]; then
echo " 准备执行生成补丁包命令:$cmd "
echo " 基准包配置文件:tinker/config.xml"
else
echo " 准备执行打包命令: $cmd"
fi
echo -e "\n-------------------------------------------------------\n\n\n"
eval $cmd
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。