Commit e1dbe892 authored by wanli's avatar wanli

🐞 fix(修复字节码打包工具路径问题):

parent e58446a6
...@@ -174,7 +174,7 @@ def action_build(): ...@@ -174,7 +174,7 @@ def action_build():
for f in request.files.getlist('binfile'): for f in request.files.getlist('binfile'):
target = target_path.joinpath(f.filename) target = target_path.joinpath(f.filename)
if target.suffix not in [".evue", ".js", ".css", ".hml", ".json"]: if target.suffix not in [".evue", ".js", ".css", ".hml"]:
continue continue
with open(target.resolve().as_posix(), "wb+") as fd: with open(target.resolve().as_posix(), "wb+") as fd:
...@@ -206,7 +206,8 @@ def action_build(): ...@@ -206,7 +206,8 @@ def action_build():
# new_name = "{}.{}".format(Path(file).name, "bc") # new_name = "{}.{}".format(Path(file).name, "bc")
# os.rename(os.sep.join([os.getcwd(), "executable.bc"]), os.sep.join([os.getcwd(), 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(os.getcwd()).joinpath(new_name))
dst_files.append(Path(file)) t = Path(file)
dst_files.append(t.parent.joinpath("{}.{}".format(t.name, "bc")))
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)
......
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