Commit c51d0299 by sikang

update script

parent 1caf073e
...@@ -9,11 +9,14 @@ echo "5、马甲包 3" ...@@ -9,11 +9,14 @@ echo "5、马甲包 3"
echo -n "选择打包方式:" echo -n "选择打包方式:"
read action read action
. ../../gradle.properties cd ../../
. gradle.properties
rm -rf resGuardApks
gradlew clean
if((${action}=='1')) || ((${action}=='3')) init(){
then cd lib_base/script
#同盾插拔 #同盾插拔
if((${#tongdun_parent_key}>5));then if((${#tongdun_parent_key}>5));then
echo "open" echo "open"
./sdk_manager.py "open" "TD" ./sdk_manager.py "open" "TD"
...@@ -30,20 +33,18 @@ then ...@@ -30,20 +33,18 @@ then
./rename_api.py ./rename_api.py
cd .. cd ..
fi fi
fi
cd garble cd garble
#四大组件混淆 #四大组件混淆
./rename_project.sh ./rename_project.sh
#代码结构混淆 #代码结构混淆
./insert.py ./insert.py
}
cd ../../../
rm -rf resGuardApks
gradlew clean
if((${action}=='1')) if((${action}=='1'))
then then
init
gradlew resguardAppProductGoogleplayRelease gradlew resguardAppProductGoogleplayRelease
elif((${action}=='2')) elif((${action}=='2'))
...@@ -53,19 +54,25 @@ then ...@@ -53,19 +54,25 @@ then
elif((${action}=='3')) elif((${action}=='3'))
then then
mv app/src/main/res/drawable-xxhdpi/logo_majia1.png app/src/main/res/drawable-xxhdpi/logo.png mv app/src/main/res/drawable-xxhdpi/logo_majia1.png app/src/main/res/drawable-xxhdpi/logo.png
mv script/api_mapping_majia1 script/api_mapping
sed -i "" "s#^app_name=.*#app_name=${majia_name1}#g" gradle.properties sed -i "" "s#^app_name=.*#app_name=${majia_name1}#g" gradle.properties
init
gradlew resguardAppProductGoogleplayRelease gradlew resguardAppProductGoogleplayRelease
elif((${action}=='4')) elif((${action}=='4'))
then then
mv app/src/main/res/drawable-xxhdpi/logo_majia2.png app/src/main/res/drawable-xxhdpi/logo.png mv app/src/main/res/drawable-xxhdpi/logo_majia2.png app/src/main/res/drawable-xxhdpi/logo.png
sed -i "" "s#^app_name=.*#app_name=${majia_name2}#g" gradle.properties sed -i "" "s#^app_name=.*#app_name=${majia_name2}#g" gradle.properties
mv script/api_mapping_majia2 script/api_mapping
init
gradlew resguardAppProductGoogleplayRelease gradlew resguardAppProductGoogleplayRelease
elif((${action}=='5')) elif((${action}=='5'))
then then
mv app/src/main/res/drawable-xxhdpi/logo_majia3.png app/src/main/res/drawable-xxhdpi/logo.png mv app/src/main/res/drawable-xxhdpi/logo_majia3.png app/src/main/res/drawable-xxhdpi/logo.png
sed -i "" "s#^app_name=.*#app_name=${majia_name3}#g" gradle.properties sed -i "" "s#^app_name=.*#app_name=${majia_name3}#g" gradle.properties
mv script/api_mapping_majia3 script/api_mapping
init
gradlew resguardAppProductGoogleplayRelease gradlew resguardAppProductGoogleplayRelease
......
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