Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
evm-store
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanli
evm-store
Commits
29844f7c
Commit
29844f7c
authored
Apr 22, 2021
by
wanli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
df724099
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
backend/controller/apps_manager.py
backend/controller/apps_manager.py
+2
-1
backend/controller/build_logs_manager.py
backend/controller/build_logs_manager.py
+2
-1
backend/utils/epk.py
backend/utils/epk.py
+3
-0
No files found.
backend/controller/apps_manager.py
View file @
29844f7c
...
@@ -80,7 +80,8 @@ class AppsManager(object):
...
@@ -80,7 +80,8 @@ class AppsManager(object):
app_info
=
epk
.
pack
()
app_info
=
epk
.
pack
()
epk_filename
=
os
.
sep
.
join
([
os
.
path
.
dirname
(
epk_path
)
.
replace
(
config
.
get
(
"UPLOAD_PATH"
),
""
),
"{}.epk"
.
format
(
app
.
app_name
)])
.
replace
(
'
\\
'
,
'/'
)
epk_filename
=
os
.
sep
.
join
([
os
.
path
.
dirname
(
epk_path
)
.
replace
(
config
.
get
(
"UPLOAD_PATH"
),
""
),
"{}.epk"
.
format
(
app
.
app_name
)])
.
replace
(
'
\\
'
,
'/'
)
app_info
[
'md5'
]
=
str
(
app_info
[
'md5'
])
if
app_info
:
app_info
[
'md5'
]
=
str
(
app_info
[
'md5'
])
result
=
BuildLogs
(
app
=
app
,
app_path
=
epk_filename
,
app_info
=
app_info
,
create_by
=
editor
,
create_at
=
datetime
.
now
(),
update_by
=
editor
,
update_at
=
datetime
.
now
())
result
=
BuildLogs
(
app
=
app
,
app_path
=
epk_filename
,
app_info
=
app_info
,
create_by
=
editor
,
create_at
=
datetime
.
now
(),
update_by
=
editor
,
update_at
=
datetime
.
now
())
commit
()
commit
()
...
...
backend/controller/build_logs_manager.py
View file @
29844f7c
...
@@ -72,7 +72,8 @@ class BuildLogsManager(object):
...
@@ -72,7 +72,8 @@ class BuildLogsManager(object):
params
[
'algorithm'
]
=
"h"
params
[
'algorithm'
]
=
"h"
epk
=
EpkApp
(
**
params
)
epk
=
EpkApp
(
**
params
)
app_info
=
epk
.
pack
()
app_info
=
epk
.
pack
()
app_info
[
'md5'
]
=
str
(
app_info
[
'md5'
])
if
app_info
:
app_info
[
'md5'
]
=
str
(
app_info
[
'md5'
])
# 更新数据库对应文件路径
# 更新数据库对应文件路径
for
sf
in
source_files
:
for
sf
in
source_files
:
...
...
backend/utils/epk.py
View file @
29844f7c
...
@@ -216,6 +216,7 @@ class EpkApp(object):
...
@@ -216,6 +216,7 @@ class EpkApp(object):
# infos = self.epkInfo()
# infos = self.epkInfo()
epkFileBytes
=
b
""
epkFileBytes
=
b
""
ret
=
None
epkFileContentBytes
=
b
""
epkFileContentBytes
=
b
""
file_count
=
len
(
infos
[
"files"
])
file_count
=
len
(
infos
[
"files"
])
with
open
(
self
.
_epkName
,
"wb"
)
as
f
:
with
open
(
self
.
_epkName
,
"wb"
)
as
f
:
...
@@ -255,6 +256,8 @@ class EpkApp(object):
...
@@ -255,6 +256,8 @@ class EpkApp(object):
pprint
.
pprint
(
ret
)
pprint
.
pprint
(
ret
)
return
ret
def
main
(
path
,
appName
,
algorithm
):
def
main
(
path
,
appName
,
algorithm
):
epk
=
EpkApp
(
appName
,
path
,
algorithm
)
epk
=
EpkApp
(
appName
,
path
,
algorithm
)
...
...
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