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
4f5bf85e
Commit
4f5bf85e
authored
Nov 18, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update script
parent
4bafac38
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
4 deletions
+25
-4
python/func.py
+14
-0
python/main.py
+10
-2
python/shell.py
+1
-2
No files found.
python/func.py
View file @
4f5bf85e
...
@@ -380,3 +380,17 @@ class Function:
...
@@ -380,3 +380,17 @@ class Function:
"signging_storePassword"
:
"
%
s"
%
new_config
[
'signging_storePassword'
],
"signging_storePassword"
:
"
%
s"
%
new_config
[
'signging_storePassword'
],
}
}
self
.
update_properties
(
config
,
lines
)
self
.
update_properties
(
config
,
lines
)
#copy logo
def
find_logo
(
self
,
config
):
path
=
"/Users/connor/Downloads/
%
s"
%
config
[
'corp_id'
]
file
=
{}
for
root
,
dirs
,
files
in
os
.
walk
(
path
):
for
file
in
files
:
if
"logo_512"
in
file
and
"logo"
not
in
file
.
keys
():
file
[
'logo'
]
=
file
if
"1024_500"
in
file
and
"top"
not
in
file
.
keys
():
file
[
'top'
]
=
file
print
(
file
)
python/main.py
View file @
4f5bf85e
...
@@ -58,7 +58,9 @@ print("24、插入混淆代码")
...
@@ -58,7 +58,9 @@ print("24、插入混淆代码")
print
(
"25、插入混淆layout"
)
print
(
"25、插入混淆layout"
)
print
(
"26、启用/禁用代码"
)
print
(
"26、启用/禁用代码"
)
print
(
"27、签名SHA1"
)
print
(
"27、签名SHA1"
)
print
(
"28、安装apk到手机"
)
print
(
"121、安装apk到手机"
)
print
(
"122、裁切脚本logo和置顶图"
)
print
(
"123、替换设计图"
)
command
=
int
(
input
(
"请输入指令编号:"
))
command
=
int
(
input
(
"请输入指令编号:"
))
...
@@ -174,5 +176,11 @@ elif command == 26:
...
@@ -174,5 +176,11 @@ elif command == 26:
elif
command
==
27
:
elif
command
==
27
:
Function
()
.
upate_keytore_sign
(
config
)
Function
()
.
upate_keytore_sign
(
config
)
elif
command
==
28
:
elif
command
==
121
:
Shell
()
.
install_app
(
config
)
Shell
()
.
install_app
(
config
)
elif
command
==
122
:
Shell
()
.
install_app
(
config
)
elif
command
==
123
:
Function
()
.
find_logo
(
config
)
python/shell.py
View file @
4f5bf85e
...
@@ -125,4 +125,4 @@ class Shell:
...
@@ -125,4 +125,4 @@ class Shell:
file_name
=
"
%
s_
%
s"
%
(
file_name
=
"
%
s_
%
s"
%
(
config
[
'corp_id'
],
config
[
'app_name'
]
.
replace
(
" "
,
"_"
))
config
[
'corp_id'
],
config
[
'app_name'
]
.
replace
(
" "
,
"_"
))
apk_local
=
"
%
s/resGuardApks/
%
s_release.apk"
%
(
config
[
'root'
],
file_name
)
apk_local
=
"
%
s/resGuardApks/
%
s_release.apk"
%
(
config
[
'root'
],
file_name
)
os
.
system
(
"adb install
%
s"
%
apk_local
)
os
.
system
(
"adb install
%
s"
%
apk_local
)
\ No newline at end of file
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