支持windows系统的安装

This commit is contained in:
徐文彬
2025-12-06 23:40:24 +08:00
parent 017ad5e4d9
commit 90f9a131fe
2 changed files with 2 additions and 66 deletions

View File

@@ -285,6 +285,8 @@ def op_run_command(op: Dict[str, Any], ctx: Dict[str, Any]) -> None:
env[key] = value.replace("${install_dir}", str(ctx["install_dir"]))
command = op.get("command", "")
if sys.platform == "win32" and command.strip() == "bash install.sh":
command = "cmd /c install.bat"
result = subprocess.run(
command,
shell=True,