加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.py 970 Bytes
一键复制 编辑 原始数据 按行查看 历史
程序鸭 提交于 2024-01-29 17:28 . [-] 删除无用的脚本
#!/usr/bin/python3
# Copyright (c) 2023-2024 DoubleByte.
# This is licensed under Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
#
# http://license.coscl.org.cn/MulanPSL2
#
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v2 for more details.
import subprocess
import sys
import os
from core.util.path import CORE_PATH, PREBUILD_PATH
sys.path.append(CORE_PATH)
from core.util.env import getEnv
from core.util.log_util import LogUtil
if not os.path.exists(PREBUILD_PATH):
LogUtil.error("please execute ./build/prebuild.py")
sys.exit()
LogUtil.success("host platform " + sys.platform)
cmd = ["python", "build/core/main.py"] + sys.argv[1:]
subprocess.run(cmd, env=getEnv());
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化