Commit 4d05f986 by sikang

update script

parent 84e1fccd
......@@ -2,7 +2,12 @@
developer="sikang"
cus_crop_id="${corp_id_majia}"
cus_crop_id=$1
if((${#cus_crop_id}==0))
then
cus_crop_id="${corp_id_majia}"
if((${#cus_crop_id}==0))
then
cus_crop_id=="${corp_id}"
......
#!/usr/bin/env bash
echo "1、GP包(无权限)"
echo "2、渠道包(有权限)"
echo "3、马甲包 GP"
echo "4、马甲包 渠道"
echo "3、马甲包 1"
echo "4、马甲包 2"
echo "5、马甲包 3"
echo -n "选择打包方式:"
read action
......@@ -48,15 +52,22 @@ then
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
mv app/src/main/res/drawable-xxhdpi/logo_majia1.png app/src/main/res/drawable-xxhdpi/logo.png
sed -i "" "s#^app_name=.*#app_name=${majia_name1}#g" gradle.properties
gradlew resguardAppProductGoogleplayRelease
elif((${action}=='4'))
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
gradlew resguardAppProductWebsiteRelease
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
gradlew resguardAppProductGoogleplayRelease
elif((${action}=='5'))
then
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
gradlew resguardAppProductGoogleplayRelease
else
echo "未知的打包方式"
......
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