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
1fc61a73
Commit
1fc61a73
authored
Jun 28, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 爱马甲包切换
parent
724a6da5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
7 deletions
+41
-7
script/release_builder.sh
+1
-1
script/script_help.sh
+40
-6
No files found.
script/release_builder.sh
View file @
1fc61a73
...
...
@@ -17,7 +17,7 @@ gradlew clean
init
(){
cd
lib_base/script
#api混淆
if
[[
"
$rename_api
"
=
"true"
]]
;
then
if
[[
-e
"script/api_mapping"
]]
;
then
cd
code
chmod a+x rename_api.py
./rename_api.py
...
...
script/script_help.sh
View file @
1fc61a73
...
...
@@ -24,7 +24,7 @@ echo "21、获取签名秘钥散列"
echo
"22、更新gateway"
echo
"23、字符串加密"
echo
"24、添加toolbox库"
echo
"25、
替换马甲配置
"
echo
"25、
马甲包切换
"
echo
-n
"请输入指令编号:"
read
commod
...
...
@@ -203,11 +203,45 @@ elif (($commod == '25'))
then
cd
../..
.
gradle.properties
mv
"app/src/main/res/drawable-xxhdpi/logo_majia
${
1
}
.png"
app/src/main/res/drawable-xxhdpi/logo.png
mv
"script/api_mapping_majia
${
1
}
"
script/api_mapping
# cd lib_base/script/res
# chmod a+x update_gateway.py
# python update_gateway.py ${gateway_mj}
echo
"1、切换到主包"
echo
"2、切换到马甲包"
echo
-n
"请选择操作:"
read
action
if
((
$action
==
'1'
))
then
#主包Logo
cp app/src/main/res/drawable-xxhdpi/logo_main.png app/src/main/res/drawable-xxhdpi/logo.png
||
{
echo
"logo_main.png not exist"
;
exit
1
;
}
#主包混淆文件
rm script/api_mapping
cp script/api_mapping_main script/api_mapping
#APP名替换
sed
-i
""
"s#^app_name=.*#app_name=
${
main_name
}
#g"
gradle.properties
sed
-i
""
"s#^gateway_url=.*#gateway_url=
\"
${
gateway_main
}
\"
#g"
gradle.properties
#更新gw
cd
lib_base/script/res
chmod a+x update_gateway.py
python update_gateway.py
elif
((
$action
==
'2'
))
then
#马甲logo替换主logo
cp app/src/main/res/drawable-xxhdpi/logo_majia.png app/src/main/res/drawable-xxhdpi/logo.png
||
{
echo
"logo_majia.png not exist"
;
exit
1
;
}
#马甲混淆文件替换
rm script/api_mapping
cp script/api_mapping_majia script/api_mapping
#APP名替换
sed
-i
""
"s#^app_name=.*#app_name=
${
majia_name
}
#g"
gradle.properties
sed
-i
""
"s#^gateway_url=.*#gateway_url=
\"
${
gateway_mj
}
\"
#g"
gradle.properties
#更新gw
cd
lib_base/script/res
chmod a+x update_gateway.py
python update_gateway.py
fi
elif
((
$commod
==
'10000'
))
...
...
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