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(): ...@@ -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):
......
...@@ -50,12 +50,12 @@ ...@@ -50,12 +50,12 @@
<el-table-column <el-table-column
prop="app_version" prop="app_version"
label="应用版本号" label="应用版本号"
width="150" width="100"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="category" prop="category"
label="应用类别" label="应用类别"
width="120" width="100"
></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="120" width="150"
></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;
}); });
......
...@@ -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() {},
......
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