Commit 5e2e515d by sikang

update script

parent 884b7f77
......@@ -7,6 +7,20 @@ read action
. ../../gradle.properties
if((${action}=='1')) || ((${action}=='3'))
then
#同盾插拔
./sdk_manager.py ${td_mode} "TD"
#api混淆
if ((${rename_api}=='true'))
then
cd code
chmod a+x rename_api.py
./rename_api.py
cd ..
fi
fi
cd garble
#四大组件混淆
./rename_project.sh
......@@ -19,16 +33,6 @@ gradlew clean
if((${action}=='1'))
then
#同盾插拔
./sdk_manager.py ${td_mode} "TD"
#api混淆
if ((${rename_api}=='true'))
then
cd code
chmod a+x rename_api.py
./rename_api.py
fi
gradlew resguardAppProductGoogleplayRelease
elif((${action}=='2'))
......@@ -39,14 +43,6 @@ elif((${action}=='3'))
then
mv app/src/main/res/drawable-xxhdpi/logo_majia.png app/src/main/res/drawable-xxhdpi/logo.png
sed -i "" "s#^app_name=.*#app_name=${majia_name}#g" gradle.properties
./sdk_manager.py ${td_mode} "TD"
#api混淆
if [[ ${rename_api} == true ]]
then
cd code
chmod a+x rename_api.py
./rename_api.py
fi
gradlew resguardAppProductGoogleplayRelease
elif((${action}=='4'))
......
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