def move_to_out_folder(project, job, config):
""" Moves the final project into the tmp folder """
build_file = config.get("out")
if os.path.isfile(build_file):
flash("Could not find output file", category="error")
return
build_folder = os.path.join(project.path, os.path.dirname(build_file))
output_folder = os.path.join(project.output, job.name)
shutil.make_archive(output_folder, "zip", build_folder)
remove_tree(build_folder)
return output_folder + ".zip"
评论列表
文章目录