Administrator
2025-07-09 969c18b0aead1abfb68a38366e6a8e4e877c00d5
脚本构建服务器
1个文件已修改
5 ■■■■■ 已修改文件
build_server.py 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
build_server.py
@@ -40,8 +40,9 @@
            if os.path.exists(output_file_path):
                os.remove(output_file_path)
            # 进行编译
            logger_debug.info(f"编译脚本:{os.path.join(root_dir, script)}")
            result = subprocess.run(f"cd {root_dir} && {script}  ", stdout=subprocess.PIPE, shell=True)
            fscript = f"cd {root_dir} && rm -rf {output_file} && {script}  "
            logger_debug.info(fscript)
            result = subprocess.run(fscript, stdout=subprocess.PIPE, shell=True)
            logger_debug.info(f"执行结果:{result.stdout}")
            if not os.path.exists(output_file_path):
                response_data = json.dumps({"code": 1, "msg": "编译失败"})