Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
c51d0299
Commit
c51d0299
authored
Apr 30, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update script
parent
1caf073e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
13 deletions
+20
-13
script/release_builder.sh
+20
-13
No files found.
script/release_builder.sh
View file @
c51d0299
...
@@ -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
i
f
((
${
action
}
==
'1'
))
||
((
${
action
}
==
'3'
))
i
nit
(){
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment