Fix render workflow to require Gradle

This commit is contained in:
2026-08-10 22:00:41 +01:00
parent 4a91533b63
commit f2ed73b929
2 changed files with 6 additions and 15 deletions
+1 -15
View File
@@ -4,7 +4,6 @@ from __future__ import annotations
import argparse
import os
import subprocess
import sys
from pathlib import Path
@@ -25,20 +24,7 @@ def main() -> int:
command = ["gradle", "-p", str(client_renderer), "runClient", "--no-daemon"]
try:
completed = subprocess.run(command, cwd=repo_root, env=env)
except FileNotFoundError:
fallback = [
sys.executable,
str(Path(__file__).resolve().with_name("render_models.py")),
"--manifest",
str((repo_root / args.manifest).resolve()),
"--pack-root",
str((repo_root / args.pack_root).resolve()),
"--output-dir",
str((repo_root / args.output_dir).resolve()),
]
completed = subprocess.run(fallback, cwd=repo_root, env=env)
completed = subprocess.run(command, cwd=repo_root, env=env)
return completed.returncode