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
5011b97b
Commit
5011b97b
authored
May 24, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
脚脚本更新 打印秘钥山散列ã。包名
parent
5887d93a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
2 deletions
+37
-2
script/print/print_splash_path.py
+28
-0
script/script_help.sh
+9
-2
No files found.
script/print/print_splash_path.py
0 → 100644
View file @
5011b97b
#!/usr/bin/env python3
import
json
import
string
import
random
import
base64
import
glob
,
os
# def gen_rand_str():
# rand_str = ''.join(random.choices(string.ascii_uppercase + string.ascii_lowercase, k=8))
# return rand_str + str(random.randint(0, 1000000))
def
print_path
(
path
):
with
open
(
path
,
"r"
)
as
f
:
lines
=
f
.
readlines
()
for
line
in
lines
:
if
"package"
in
line
and
";"
in
line
:
act_path
=
line
.
replace
(
"package "
,
""
)
.
replace
(
";"
,
".SplashActivity"
)
print
(
act_path
)
for
root
,
dirs
,
files
in
os
.
walk
(
"../../../app/src/main"
):
directory
=
os
.
path
.
join
(
os
.
getcwd
(),
root
)
for
file
in
files
:
if
file
.
endswith
(
"SplashActivity.java"
):
# get the path of the java file
path
=
os
.
path
.
join
(
directory
,
file
)
print_path
(
path
)
script/script_help.sh
View file @
5011b97b
...
...
@@ -163,9 +163,16 @@ then
elif
((
$commod
==
'21'
))
then
cd
../../
.
gradle.properties
.
../../gradle.properties
keytool
-exportcert
-alias
${
signing_keyAlias
}
-keystore
"app/
${
signing_certificate
}
"
-storepass
"
${
signing_keyAlias
}
"
| openssl sha1
-binary
| openssl base64
cd
print
python print_splash_path.py
elif
((
$commod
==
'22'
))
then
cd
res
chmod a+x update_gateway.py
python update_gateway.py
elif
((
$commod
==
'23'
))
then
...
...
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