From 7fcc12bbd921a665f07f637fff9a4e3b6608bca7 Mon Sep 17 00:00:00 2001 From: alexion Date: Mon, 7 Sep 2026 14:07:29 -0400 Subject: [PATCH] fix(clew): default output to repository root --- .gitignore | 3 +++ src/clew/README.md | 4 ++-- src/clew/clew.py | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 2653e87..47f7783 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,9 @@ Thumbs.db # Bazel convenience symlinks /bazel-* +# local generated output +/output/ + # language package-manager caches and outputs node_modules/ dist/ diff --git a/src/clew/README.md b/src/clew/README.md index aaa5a3e..4697510 100644 --- a/src/clew/README.md +++ b/src/clew/README.md @@ -7,13 +7,13 @@ Run Clew with Bazel: ```sh bazel run //src/clew -- \ --game-root /path/to/game \ - --output-root src/ariadne/output \ --force ``` The first version copies loose `.rpy` files and collects compiled script files. It extracts all files from `.rpa` archives. Use `--suffix` to limit archive extraction to selected file suffixes. -It writes output under `source/`, `work/`, and `logs/`. +It writes output under `output/` at the repository root by default. +The output root contains `source/`, `work/`, and `logs/`. Use `--force` to replace those Clew-managed directories. diff --git a/src/clew/clew.py b/src/clew/clew.py index 47126e4..8d0ab00 100644 --- a/src/clew/clew.py +++ b/src/clew/clew.py @@ -46,7 +46,7 @@ def parse_args(argv: list[str]) -> argparse.Namespace: def default_output_root() -> Path: workspace = os.environ.get("BUILD_WORKSPACE_DIRECTORY") if workspace: - return Path(workspace) / "src" / "ariadne" / "output" + return Path(workspace) / "output" return Path(__file__).resolve().parent / "output"