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
8da250eb
Commit
8da250eb
authored
Oct 17, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
ff93d531
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
2 deletions
+27
-2
python/main.py
+7
-1
python/shell.py
+20
-1
No files found.
python/main.py
View file @
8da250eb
...
@@ -16,7 +16,9 @@ print("1、编译apk")
...
@@ -16,7 +16,9 @@ print("1、编译apk")
print
(
"2、修改包名,版本号+1"
)
print
(
"2、修改包名,版本号+1"
)
print
(
"3、创建新的签名文件"
)
print
(
"3、创建新的签名文件"
)
print
(
"4、commit & push project"
)
print
(
"4、commit & push project"
)
print
(
"5、commit & push lib_base"
)
print
(
"5、pull lib_base & cash_plugin_toolbox"
)
print
(
"6、commit & push lib_base"
)
print
(
"8、提交一个渠道包Tag"
)
print
(
" "
)
print
(
" "
)
commod
=
int
(
input
(
"请输入指令编号:"
))
commod
=
int
(
input
(
"请输入指令编号:"
))
...
@@ -33,5 +35,8 @@ elif commod == 4:
...
@@ -33,5 +35,8 @@ elif commod == 4:
Shell
.
push_project
(
config
)
Shell
.
push_project
(
config
)
elif
commod
==
5
:
elif
commod
==
5
:
Shell
.
pull_base
(
config
)
elif
commod
==
6
:
Shell
.
push_base
(
config
)
Shell
.
push_base
(
config
)
\ No newline at end of file
python/shell.py
View file @
8da250eb
...
@@ -21,9 +21,28 @@ class Shell:
...
@@ -21,9 +21,28 @@ class Shell:
commit_msg
=
input
(
"输入commit msg:
\n
"
)
commit_msg
=
input
(
"输入commit msg:
\n
"
)
command
=
"
%
s
\n
%
s
\n
%
s
\n
%
s
\n
"
\
command
=
"
%
s
\n
%
s
\n
%
s
\n
%
s
\n
"
\
%
(
%
(
"cd
%
s/
%
s"
%
(
config
[
'root'
],
"lib_base"
),
"cd
%
s/
%
s"
%
(
config
[
'root'
],
"lib_base"
),
"git add ."
,
"git add ."
,
"git commit -m
\"
%
s
\"
"
%
commit_msg
,
"git commit -m
\"
%
s
\"
"
%
commit_msg
,
"git push origin master"
"git push origin master"
)
)
os
.
system
(
command
)
os
.
system
(
command
)
#pull lib_base & cash_plugin_toolbox
@staticmethod
def
pull_base
(
config
):
command
=
"
%
s
\n
%
s
\n
%
s
\n
%
s
\n
%
s
\n
%
s
\n
%
s
\n
%
s
\n
%
s
\n
%
s
\n
%
s
\n
"
\
%
(
"cd
%
s"
%
config
[
'root'
],
"git submodule update --remote"
,
"cd lib_base"
,
"git checkout master"
,
"git pull"
,
"cd ../cash_plugin_toolbox"
,
"git checkout master"
,
"git pull"
,
"cd ../lib_yitu || { echo
\"
lib_yitu not exist
\"
; exit 1; }"
,
"git checkout master"
,
"git pull"
)
os
.
system
(
command
)
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