Commit ff31d0aa by sikang

update script

parent b72ed88a
defaultTasks 'clean', 'resguardAppProductWebsiteRelease'
buildscript { buildscript {
repositories { repositories {
google() google()
......
...@@ -21,6 +21,6 @@ ...@@ -21,6 +21,6 @@
"ProductListFragment", "ProductListFragment",
"RepaymentFragment" "RepaymentFragment"
], ],
"root": "../../app/src/main", "root": "../../../app/src/main",
"manifest": "../../app/src/main/AndroidManifest.xml" "manifest": "../../../app/src/main/AndroidManifest.xml"
} }
...@@ -79,8 +79,8 @@ ...@@ -79,8 +79,8 @@
"YWUser", "YWUser",
"TDChannel" "TDChannel"
], ],
"root": "../../lib_base/src/main", "root": "../../../lib_base/src/main",
"manifest": "../../lib_base/src/main/AndroidManifest.xml", "manifest": "../../../lib_base/src/main/AndroidManifest.xml",
"approot": "../../app/src/main", "approot": "../../../app/src/main",
"appmanifest": "../../app/src/main/AndroidManifest.xml" "appmanifest": "../../../app/src/main/AndroidManifest.xml"
} }
cd .. cd ../../
git checkout . && git clean -df git checkout . && git clean -df
git reset --hard origin/master git reset --hard origin/master
cd .. cd ..
......
cd ../../
source ./gradle.properties
git add .
git commit -m "${app_id} ${version_name}"
tagName=t${corp_id}-${app_id}
git tag -a ${tagName} -m ${tagName}
git push origin ${tagName}
\ No newline at end of file
...@@ -7,28 +7,35 @@ echo "4、commit 和 push UI代码 (需手动修改分支)" ...@@ -7,28 +7,35 @@ echo "4、commit 和 push UI代码 (需手动修改分支)"
echo "5、pull Base代码 " echo "5、pull Base代码 "
echo "6、pull UI代码 " echo "6、pull UI代码 "
echo "7、为 resGuardApks 目录下的 *_release.apk 打渠道包" echo "7、为 resGuardApks 目录下的 *_release.apk 打渠道包"
echo "8、提交一个渠道包Tag"
echo "a、开始四大组件混淆"
echo "b、还原四大组件混淆"
echo -n "请输入指令编号:" echo -n "请输入指令编号:"
read commod read commod
if (($commod == '0')) if (($commod == '0'))
then then
chmod a+x pkgname_generator.py
./pkgname_generator.py ./pkgname_generator.py
elif (($commod == '1')) elif (($commod == '1'))
then then
chmod a+x release_builder.sh
./release_builder.sh ./release_builder.sh
elif (($commod == '2')) elif (($commod == '2'))
then then
# ./create_keystore.py chmod a+x creat_keystore.sh
./creat_keystore.sh ./creat_keystore.sh
elif (($commod == '3')) elif (($commod == '3'))
then then
chmod a+x base_push.sh
./base_push.sh ./base_push.sh
elif (($commod == '4')) elif (($commod == '4'))
then then
chmod a+x module_push.sh
./module_push.sh ./module_push.sh
elif (($commod == '5')) elif (($commod == '5'))
...@@ -43,8 +50,26 @@ then ...@@ -43,8 +50,26 @@ then
elif (($commod == '7')) elif (($commod == '7'))
then then
chmod a+x make_channel.sh
./make_channel.sh ./make_channel.sh
elif (($commod == '8'))
then
chmod a+x push_with_tag.sh
./push_with_tag.sh
elif (($commod == 'a'))
then
cd grable
chmod a+x rename_peoject.sh
./rename_peoject.sh
elif (($commod == 'b'))
then
cd grable
chmod a+x reset_name.sh
./reset_name.sh
else else
echo "找不到编号" echo "找不到编号"
fi 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