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
1761d89b
Commit
1761d89b
authored
Jul 23, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix sed -i
parent
d518cd14
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
22 deletions
+22
-22
script/build_tool_apk.sh
+5
-5
script/creat_keystore.sh
+4
-4
script/release_builder.sh
+3
-3
script/rename_pkg.sh
+4
-4
script/script_help.sh
+6
-6
No files found.
script/build_tool_apk.sh
View file @
1761d89b
...
...
@@ -5,11 +5,11 @@ project_name=${basepath##*/}
cd
../hooker/
sed
-i
""
"s#^app_id=.*#app_id=
${
app_id
}
#g"
gradle.properties
sed
-i
""
"s#^signing_keyAlias=.*#signing_keyAlias=
${
signing_keyAlias
}
#g"
gradle.properties
sed
-i
""
"s#^signing_certificate=.*#signing_certificate=../../
${
project_name
}
/jks/
${
signing_keyAlias
}
.keystore#g"
gradle.properties
sed
-i
""
"s#^signging_certificatePassword=.*#signging_certificatePassword=
${
signging_certificatePassword
}
#g"
gradle.properties
sed
-i
""
"s#^signging_storePassword=.*#signging_storePassword=
${
signging_storePassword
}
#g"
gradle.properties
LC_CTYPE
=
C
&&
LANG
=
C
&&
sed
-i
""
"s#^app_id=.*#app_id=
${
app_id
}
#g"
gradle.properties
LC_CTYPE
=
C
&&
LANG
=
C
&&
sed
-i
""
"s#^signing_keyAlias=.*#signing_keyAlias=
${
signing_keyAlias
}
#g"
gradle.properties
LC_CTYPE
=
C
&&
LANG
=
C
&&
sed
-i
""
"s#^signing_certificate=.*#signing_certificate=../../
${
project_name
}
/jks/
${
signing_keyAlias
}
.keystore#g"
gradle.properties
LC_CTYPE
=
C
&&
LANG
=
C
&&
sed
-i
""
"s#^signging_certificatePassword=.*#signging_certificatePassword=
${
signging_certificatePassword
}
#g"
gradle.properties
LC_CTYPE
=
C
&&
LANG
=
C
&&
sed
-i
""
"s#^signging_storePassword=.*#signging_storePassword=
${
signging_storePassword
}
#g"
gradle.properties
./gradlew clean
./gradlew assembleRelease
...
...
script/creat_keystore.sh
View file @
1761d89b
...
...
@@ -19,10 +19,10 @@ certificate="../jks/${alias}.keystore"
certificatePassword
=
${
alias
}
storePassword
=
${
alias
}
sed
-i
""
"s#^signing_keyAlias=.*#signing_keyAlias=
${
alias
}
#g"
gradle.properties
sed
-i
""
"s#^signing_certificate=.*#signing_certificate=
${
certificate
}
#g"
gradle.properties
sed
-i
""
"s#^signging_certificatePassword=.*#signging_certificatePassword=
${
certificatePassword
}
#g"
gradle.properties
sed
-i
""
"s#^signging_storePassword=.*#signging_storePassword=
${
storePassword
}
#g"
gradle.properties
LC_CTYPE
=
C
&&
LANG
=
C
&&
sed
-i
""
"s#^signing_keyAlias=.*#signing_keyAlias=
${
alias
}
#g"
gradle.properties
LC_CTYPE
=
C
&&
LANG
=
C
&&
sed
-i
""
"s#^signing_certificate=.*#signing_certificate=
${
certificate
}
#g"
gradle.properties
LC_CTYPE
=
C
&&
LANG
=
C
&&
sed
-i
""
"s#^signging_certificatePassword=.*#signging_certificatePassword=
${
certificatePassword
}
#g"
gradle.properties
LC_CTYPE
=
C
&&
LANG
=
C
&&
sed
-i
""
"s#^signging_storePassword=.*#signging_storePassword=
${
storePassword
}
#g"
gradle.properties
rm
-rf
jks/
*
...
...
script/release_builder.sh
View file @
1761d89b
...
...
@@ -47,14 +47,14 @@ then
#then
# 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
#
LC_CTYPE=C && LANG=C &&
sed -i "" "s#^app_name=.*#app_name=${majia_name1}#g" gradle.properties
# init
# gradlew resguardAppProductGoogleplayRelease
#
#elif((${action}=='4'))
#then
# 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
#
LC_CTYPE=C && LANG=C &&
sed -i "" "s#^app_name=.*#app_name=${majia_name2}#g" gradle.properties
# mv script/api_mapping_majia2 script/api_mapping
# init
# gradlew resguardAppProductGoogleplayRelease
...
...
@@ -62,7 +62,7 @@ then
#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
#
LC_CTYPE=C && LANG=C &&
sed -i "" "s#^app_name=.*#app_name=${majia_name3}#g" gradle.properties
# mv script/api_mapping_majia3 script/api_mapping
# init
# gradlew resguardAppProductGoogleplayRelease
...
...
script/rename_pkg.sh
View file @
1761d89b
...
...
@@ -7,6 +7,6 @@ v_name=$((${v_code}/100))"."$((${v_code}%100/10))"."$((${v_code}%10))
echo
"appId=
${
1
}
,versionCode=
${
v_code
}
,verionName=
${
v_name
}
"
sed
-i
""
"s#^app_id=.*#app_id=
${
1
}
#g"
gradle.properties
sed
-i
""
"s#^version_code=.*#version_code=
${
v_code
}
#g"
gradle.properties
sed
-i
""
"s#^version_name=.*#version_name=
${
v_name
}
#g"
gradle.properties
\ No newline at end of file
LC_CTYPE
=
C
&&
LANG
=
C
&&
sed
-i
""
"s#^app_id=.*#app_id=
${
1
}
#g"
gradle.properties
LC_CTYPE
=
C
&&
LANG
=
C
&&
sed
-i
""
"s#^version_code=.*#version_code=
${
v_code
}
#g"
gradle.properties
LC_CTYPE
=
C
&&
LANG
=
C
&&
sed
-i
""
"s#^version_name=.*#version_name=
${
v_name
}
#g"
gradle.properties
\ No newline at end of file
script/script_help.sh
View file @
1761d89b
...
...
@@ -224,9 +224,9 @@ then
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
sed
-i
""
"s#^host_app=.*#host_app=true#g"
gradle.properties
LC_CTYPE
=
C
&&
LANG
=
C
&&
sed
-i
""
"s#^app_name=.*#app_name='
${
main_name
}
'#g"
gradle.properties
LC_CTYPE
=
C
&&
LANG
=
C
&&
sed
-i
""
"s#^gateway_url=.*#gateway_url=
\"
${
gateway_main
}
\"
#g"
gradle.properties
LC_CTYPE
=
C
&&
LANG
=
C
&&
sed
-i
""
"s#^host_app=.*#host_app=true#g"
gradle.properties
#更新gw
cd
lib_base/script/res
chmod a+x update_gateway.py
...
...
@@ -241,9 +241,9 @@ then
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
sed
-i
""
"s#^host_app=.*#host_app=false#g"
gradle.properties
LC_CTYPE
=
C
&&
LANG
=
C
&&
sed
-i
""
"s#^app_name=.*#app_name='
${
majia_name
}
'#g"
gradle.properties
LC_CTYPE
=
C
&&
LANG
=
C
&&
sed
-i
""
"s#^gateway_url=.*#gateway_url=
\"
${
gateway_mj
}
\"
#g"
gradle.properties
LC_CTYPE
=
C
&&
LANG
=
C
&&
sed
-i
""
"s#^host_app=.*#host_app=false#g"
gradle.properties
#更新gw
cd
lib_base/script/res
chmod a+x update_gateway.py
...
...
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