Commit e58446a6 authored by wanli's avatar wanli

🐞 fix: 修复路径问题

修复更新executable文件带来的路径问题
parent fd94abc6
No preview for this file type
......@@ -202,13 +202,15 @@ def action_build():
fd.write(text)
result = subprocess.call("./utils/executable -c {file}".format(file=file), shell=True)
new_name = "{}.{}".format(Path(file).name, "bc")
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))
print(result)
# new_name = "{}.{}".format(Path(file).name, "bc")
# 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:
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):
......
......@@ -50,12 +50,12 @@
<el-table-column
prop="app_version"
label="应用版本号"
width="150"
width="100"
></el-table-column>
<el-table-column
prop="category"
label="应用类别"
width="120"
width="100"
></el-table-column>
<el-table-column
prop="epk_size"
......@@ -64,8 +64,8 @@
></el-table-column>
<el-table-column
prop="file_length"
label="解压后大小"
width="120"
label="解压后大小(Bytes)"
width="150"
></el-table-column>
<el-table-column
prop="app_desc"
......@@ -316,10 +316,8 @@ export default {
else item.epk_size = "";
if (item.app_build_log && item.app_build_log.app_info && item.app_build_log.app_info.fileLength)
item.file_length =
(item.app_build_log.app_info.fileLength / 1024).toFixed(2) +
"KB";
else item.file_length = ""
item.file_length = item.app_build_log.app_info.fileLength;
else item.file_length = "";
return item;
});
......
......@@ -95,29 +95,13 @@ export default {
});
},
fetchData() {
console.log("请求已经发送")
fetchData()
.then((res) => {
console.log("打印来自bytecode-tool.vue");
console.log(res);
})
.catch((err) => {
console.log(this.page)
this.test()
console.log("打印来自bytecode-tool.vue");
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() {},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment