Commit cd760ff0 by sikang

update script

parent 62848680
rm -rf ../resGuardApks
cd script
./rename_project.sh
cd ../../
gradlew resguardAppProductGoogleplayRelease
cd lib_base/script
./reset_name.sh
\ No newline at end of file
cd ../app/src/app/ cd ..
git add . git add .
echo -n "commit message: " echo -n "commit message: "
read message read message
......
read message
echo "${message}"
\ No newline at end of file
cd ../../
basepath=$(cd `dirname $0`; pwd)
project_name=${basepath##*/}
echo -n "请输入渠道名(多个渠道逗号隔开,使用默认渠道文件按回车):"
read channels
cd lib_base/script/
if [[ -z ${channels} ]]
then
java -jar walle-cli-all.jar batch -f ../../script/channels ../../resGuardApks/"${project_name}"_release.apk
else
java -jar walle-cli-all.jar batch -c "${channels}" ../../resGuardApks/"${project_name}"_release.apk
fi
\ No newline at end of file
cd ../../
rm resGuardApks
gradlew clean
gradlew resguardAppProductGoogleplayRelease
#cd ../base/src/base/script
#./rename_project.sh
#cd ../../../../
#gradlew resguardAppProductGoogleplayRelease
#cd ../base/src/base/script
#./reset_name.sh
\ No newline at end of file
echo "脚本使用帮助"
echo "1、编译release版本"
echo "2、创建新的签名文件"
echo "3、commit 和 push Base代码"
echo "4、commit 和 push UI代码 (需手动修改分支)"
echo "5、pull Base代码 "
echo "6、pull UI代码 "
echo "7、为 resGuardApks 目录下的 *_release.apk 打渠道包"
echo -n "请输入指令编号:"
read commod
if (($commod == '1'))
then
./release_builder.sh
elif (($commod == '2'))
then
./create_keystore.py
elif (($commod == '3'))
then
./base_push.sh
elif (($commod == '4'))
then
../../script/module_push.sh
elif (($commod == '5'))
then
cd ..
git pull
elif (($commod == '6'))
then
cd ../../
git pull
elif (($commod == '7'))
then
./make_channel.sh
else
echo "找不到编号"
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment