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
4d05f986
Commit
4d05f986
authored
Apr 29, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update script
parent
84e1fccd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
8 deletions
+24
-8
script/refresh_gponline.sh
+6
-1
script/release_builder.sh
+18
-7
No files found.
script/refresh_gponline.sh
View file @
4d05f986
...
@@ -2,7 +2,12 @@
...
@@ -2,7 +2,12 @@
developer
=
"sikang"
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
))
if
((
${#
cus_crop_id
}
==
0
))
then
then
cus_crop_id
==
"
${
corp_id
}
"
cus_crop_id
==
"
${
corp_id
}
"
...
...
script/release_builder.sh
View file @
4d05f986
#!/usr/bin/env bash
echo
"1、GP包(无权限)"
echo
"1、GP包(无权限)"
echo
"2、渠道包(有权限)"
echo
"2、渠道包(有权限)"
echo
"3、马甲包 GP"
echo
"3、马甲包 1"
echo
"4、马甲包 渠道"
echo
"4、马甲包 2"
echo
"5、马甲包 3"
echo
-n
"选择打包方式:"
echo
-n
"选择打包方式:"
read
action
read
action
...
@@ -48,15 +52,22 @@ then
...
@@ -48,15 +52,22 @@ then
elif
((
${
action
}
==
'3'
))
elif
((
${
action
}
==
'3'
))
then
then
mv app/src/main/res/drawable-xxhdpi/logo_majia.png app/src/main/res/drawable-xxhdpi/logo.png
mv app/src/main/res/drawable-xxhdpi/logo_majia
1
.png app/src/main/res/drawable-xxhdpi/logo.png
sed
-i
""
"s#^app_name=.*#app_name=
${
majia_name
}
#g"
gradle.properties
sed
-i
""
"s#^app_name=.*#app_name=
${
majia_name
1
}
#g"
gradle.properties
gradlew resguardAppProductGoogleplayRelease
gradlew resguardAppProductGoogleplayRelease
elif
((
${
action
}
==
'4'
))
elif
((
${
action
}
==
'4'
))
then
then
mv app/src/main/res/drawable-xxhdpi/logo_majia.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_name
}
#g"
gradle.properties
sed
-i
""
"s#^app_name=.*#app_name=
${
majia_name2
}
#g"
gradle.properties
gradlew resguardAppProductWebsiteRelease
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
else
echo
"未知的打包方式"
echo
"未知的打包方式"
...
...
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