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
3fbedbae
Commit
3fbedbae
authored
Mar 27, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update script
parent
d59d59c2
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
39 additions
and
6 deletions
+39
-6
script/backup/create_keystore.py
+2
-0
script/backup/obact.json
+0
-0
script/backup/obact.py
+0
-0
script/backup/obact_lib.json
+0
-0
script/backup/obact_lib.py
+0
-0
script/backup/properties_reader.py
+0
-0
script/backup/rename_project.sh
+0
-0
script/backup/reset_name.sh
+0
-0
script/creat_keystore.sh
+29
-0
script/make_channel.sh
+3
-1
script/module_push.sh
+3
-3
script/script_help.sh
+2
-2
No files found.
script/create_keystore.py
→
script/
backup/
create_keystore.py
View file @
3fbedbae
...
@@ -291,6 +291,7 @@ from properties_reader import Reader
...
@@ -291,6 +291,7 @@ from properties_reader import Reader
reader
=
Reader
(
'../../gradle.properties'
)
reader
=
Reader
(
'../../gradle.properties'
)
jvmargs
=
reader
.
get
(
'org.gradle.jvmargs'
)
jvmargs
=
reader
.
get
(
'org.gradle.jvmargs'
)
git_branch
=
reader
.
get
(
'git_branch'
)
git_branch
=
reader
.
get
(
'git_branch'
)
apk_channels
=
reader
.
get
(
'apk_channels'
)
print
(
print
(
'enter the new keystore name (last version : '
+
reader
.
get
(
'signing_keyAlias'
)
+
') '
,
" "
)
'enter the new keystore name (last version : '
+
reader
.
get
(
'signing_keyAlias'
)
+
') '
,
" "
)
...
@@ -307,6 +308,7 @@ print ('ready to create new kestore ' + keyName)
...
@@ -307,6 +308,7 @@ print ('ready to create new kestore ' + keyName)
properties
=
Properties
()
properties
=
Properties
()
properties
[
'org.gradle.jvmargs'
]
=
jvmargs
properties
[
'org.gradle.jvmargs'
]
=
jvmargs
properties
[
'git_branch'
]
=
git_branch
properties
[
'git_branch'
]
=
git_branch
properties
[
'apk_channels'
]
=
apk_channels
properties
[
'signing_keyAlias'
]
=
keyName
properties
[
'signing_keyAlias'
]
=
keyName
properties
[
'signing_certificate'
]
=
'../jks/'
+
keyName
+
'.keystore'
properties
[
'signing_certificate'
]
=
'../jks/'
+
keyName
+
'.keystore'
properties
[
'signging_certificatePassword'
]
=
keyName
properties
[
'signging_certificatePassword'
]
=
keyName
...
...
script/obact.json
→
script/
backup/
obact.json
View file @
3fbedbae
File moved
script/obact.py
→
script/
backup/
obact.py
View file @
3fbedbae
File moved
script/obact_lib.json
→
script/
backup/
obact_lib.json
View file @
3fbedbae
File moved
script/obact_lib.py
→
script/
backup/
obact_lib.py
View file @
3fbedbae
File moved
script/properties_reader.py
→
script/
backup/
properties_reader.py
View file @
3fbedbae
File moved
script/rename_project.sh
→
script/
backup/
rename_project.sh
View file @
3fbedbae
File moved
script/reset_name.sh
→
script/
backup/
reset_name.sh
View file @
3fbedbae
File moved
script/creat_keystore.sh
0 → 100755
View file @
3fbedbae
#!/usr/bin/env bash
cd
../../
.
gradle.properties
echo
-n
"enter the new keystore name (last version :
${
signing_keyAlias
}
) : "
read
newKeyName
#输入 v** 直接改版本号,否则修改全名
if
[[
${
newKeyName
:0:1
}
=
'v'
]]
then
oldIFS
=
$IFS
IFS
=
_
array
=(
${
signing_keyAlias
}
)
alias
=
"
${
array
[0]
}
_
${
newKeyName
}
"
else
alias
=
${
newKeyName
}
fi
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
echo
"ready to create new kestore
${
alias
}
"
keytool
-genkey
-alias
"
${
alias
}
"
-keyalg
RSA
-validity
20000
-keystore
jks/
"
${
alias
}
"
.keystore
\ No newline at end of file
script/make_channel.sh
View file @
3fbedbae
...
@@ -7,7 +7,8 @@ cd lib_base/script/
...
@@ -7,7 +7,8 @@ cd lib_base/script/
if
[[
-z
${
channels
}
]]
if
[[
-z
${
channels
}
]]
then
then
java
-jar
walle-cli-all.jar batch
-f
../../script/channels ../../resGuardApks/
"
${
project_name
}
"
_release.apk
source
./../../gradle.properties
java
-jar
walle-cli-all.jar batch
-c
${
apk_channels
}
../../resGuardApks/
"
${
project_name
}
"
_release.apk
else
else
java
-jar
walle-cli-all.jar batch
-c
"
${
channels
}
"
../../resGuardApks/
"
${
project_name
}
"
_release.apk
java
-jar
walle-cli-all.jar batch
-c
"
${
channels
}
"
../../resGuardApks/
"
${
project_name
}
"
_release.apk
fi
fi
\ No newline at end of file
script/module_push.sh
View file @
3fbedbae
cd
..
#!/usr/bin/env bash
echo
-n
"commit message: "
echo
-n
"commit message: "
read
message
read
message
if
((
${#
message
}
==
0
))
if
((
${#
message
}
==
0
))
...
@@ -7,8 +7,8 @@ then
...
@@ -7,8 +7,8 @@ then
cd
script
cd
script
./module_push.sh
./module_push.sh
else
else
.
../../gradle.properties
cd
../../
git_branch
=
git_branch
source
./gradle.properties
git add
.
git add
.
git commit
-m
"
${
message
}
"
git commit
-m
"
${
message
}
"
git push origin
${
git_branch
}
git push origin
${
git_branch
}
...
...
script/script_help.sh
View file @
3fbedbae
...
@@ -21,8 +21,8 @@ then
...
@@ -21,8 +21,8 @@ then
elif
((
$commod
==
'2'
))
elif
((
$commod
==
'2'
))
then
then
./create_keystore.py
#
./create_keystore.py
./creat_keystore.sh
elif
((
$commod
==
'3'
))
elif
((
$commod
==
'3'
))
then
then
./base_push.sh
./base_push.sh
...
...
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