1 Star 0 Fork 1

陈聪/hongxinyoupin

forked from yelang1991/hongxinyoupin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pack.sh 1.54 KB
一键复制 编辑 原始数据 按行查看 历史
欧阳锋 提交于 2017-08-25 15:27 . Tinker基础框架集成
#!/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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ccdy00/hongxinyoupin.git
git@gitee.com:ccdy00/hongxinyoupin.git
ccdy00
hongxinyoupin
hongxinyoupin
master

搜索帮助