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
e58446a6
Commit
e58446a6
authored
Aug 31, 2021
by
wanli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix: 修复路径问题
修复更新executable文件带来的路径问题
parent
fd94abc6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
28 deletions
+12
-28
backend/utils/executable
backend/utils/executable
+0
-0
backend/view/api.py
backend/view/api.py
+6
-4
frontend/src/views/system/apps.vue
frontend/src/views/system/apps.vue
+6
-8
frontend/src/views/system/bytecode-tool.vue
frontend/src/views/system/bytecode-tool.vue
+0
-16
No files found.
backend/utils/executable
View file @
e58446a6
No preview for this file type
backend/view/api.py
View file @
e58446a6
...
@@ -202,13 +202,15 @@ def action_build():
...
@@ -202,13 +202,15 @@ def action_build():
fd
.
write
(
text
)
fd
.
write
(
text
)
result
=
subprocess
.
call
(
"./utils/executable -c {file}"
.
format
(
file
=
file
),
shell
=
True
)
result
=
subprocess
.
call
(
"./utils/executable -c {file}"
.
format
(
file
=
file
),
shell
=
True
)
new_name
=
"{}.{}"
.
format
(
Path
(
file
)
.
name
,
"bc"
)
print
(
result
)
os
.
rename
(
os
.
sep
.
join
([
os
.
getcwd
(),
"executable.bc"
]),
os
.
sep
.
join
([
os
.
getcwd
(),
new_name
]))
# new_name = "{}.{}".format(Path(file).name, "bc")
dst_files
.
append
(
Path
(
os
.
getcwd
())
.
joinpath
(
new_name
))
# os.rename(os.sep.join([os.getcwd(), "executable.bc"]), os.sep.join([os.getcwd(), new_name]))
# dst_files.append(Path(os.getcwd()).joinpath(new_name))
dst_files
.
append
(
Path
(
file
))
for
file
in
dst_files
:
for
file
in
dst_files
:
z
.
write
(
file
.
resolve
()
.
as_posix
(),
arcname
=
file
.
name
)
z
.
write
(
file
.
resolve
()
.
as_posix
(),
arcname
=
file
.
name
)
shutil
.
move
(
file
.
resolve
()
.
as_posix
(),
target_path
.
joinpath
(
file
.
name
)
.
resolve
()
.
as_posix
())
#
shutil.move(file.resolve().as_posix(), target_path.joinpath(file.name).resolve().as_posix())
# 压缩
# 压缩
if
len
(
dst_files
):
if
len
(
dst_files
):
...
...
frontend/src/views/system/apps.vue
View file @
e58446a6
...
@@ -50,12 +50,12 @@
...
@@ -50,12 +50,12 @@
<el-table-column
<el-table-column
prop=
"app_version"
prop=
"app_version"
label=
"应用版本号"
label=
"应用版本号"
width=
"1
5
0"
width=
"1
0
0"
></el-table-column>
></el-table-column>
<el-table-column
<el-table-column
prop=
"category"
prop=
"category"
label=
"应用类别"
label=
"应用类别"
width=
"1
2
0"
width=
"1
0
0"
></el-table-column>
></el-table-column>
<el-table-column
<el-table-column
prop=
"epk_size"
prop=
"epk_size"
...
@@ -64,8 +64,8 @@
...
@@ -64,8 +64,8 @@
></el-table-column>
></el-table-column>
<el-table-column
<el-table-column
prop=
"file_length"
prop=
"file_length"
label=
"解压后大小"
label=
"解压后大小
(Bytes)
"
width=
"1
2
0"
width=
"1
5
0"
></el-table-column>
></el-table-column>
<el-table-column
<el-table-column
prop=
"app_desc"
prop=
"app_desc"
...
@@ -316,10 +316,8 @@ export default {
...
@@ -316,10 +316,8 @@ export default {
else
item
.
epk_size
=
""
;
else
item
.
epk_size
=
""
;
if
(
item
.
app_build_log
&&
item
.
app_build_log
.
app_info
&&
item
.
app_build_log
.
app_info
.
fileLength
)
if
(
item
.
app_build_log
&&
item
.
app_build_log
.
app_info
&&
item
.
app_build_log
.
app_info
.
fileLength
)
item
.
file_length
=
item
.
file_length
=
item
.
app_build_log
.
app_info
.
fileLength
;
(
item
.
app_build_log
.
app_info
.
fileLength
/
1024
).
toFixed
(
2
)
+
else
item
.
file_length
=
""
;
"
KB
"
;
else
item
.
file_length
=
""
return
item
;
return
item
;
});
});
...
...
frontend/src/views/system/bytecode-tool.vue
View file @
e58446a6
...
@@ -95,29 +95,13 @@ export default {
...
@@ -95,29 +95,13 @@ export default {
});
});
},
},
fetchData
()
{
fetchData
()
{
console
.
log
(
"
请求已经发送
"
)
fetchData
()
fetchData
()
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
console
.
log
(
"
打印来自bytecode-tool.vue
"
);
console
.
log
(
res
);
console
.
log
(
res
);
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
console
.
log
(
this
.
page
)
this
.
test
()
console
.
log
(
"
打印来自bytecode-tool.vue
"
);
console
.
log
(
err
);
console
.
log
(
err
);
});
});
setTimeout
(
function
()
{
console
.
log
(
"
bytecode-tool timeout
"
)
},
3000
)
setInterval
(
function
()
{
console
.
log
(
"
bytecode-tool interval
"
)
},
4000
)
},
test
()
{
console
.
log
(
"
byecode-tool.vue test function
"
)
},
},
},
},
mounted
()
{},
mounted
()
{},
...
...
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