fix(clew): default output to repository root

This commit is contained in:
2026-09-07 14:07:29 -04:00
parent 4de3e8dca0
commit 7fcc12bbd9
3 changed files with 6 additions and 3 deletions

3
.gitignore vendored
View File

@@ -20,6 +20,9 @@ Thumbs.db
# Bazel convenience symlinks # Bazel convenience symlinks
/bazel-* /bazel-*
# local generated output
/output/
# language package-manager caches and outputs # language package-manager caches and outputs
node_modules/ node_modules/
dist/ dist/

View File

@@ -7,13 +7,13 @@ Run Clew with Bazel:
```sh ```sh
bazel run //src/clew -- \ bazel run //src/clew -- \
--game-root /path/to/game \ --game-root /path/to/game \
--output-root src/ariadne/output \
--force --force
``` ```
The first version copies loose `.rpy` files and collects compiled script files. The first version copies loose `.rpy` files and collects compiled script files.
It extracts all files from `.rpa` archives. It extracts all files from `.rpa` archives.
Use `--suffix` to limit archive extraction to selected file suffixes. 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. Use `--force` to replace those Clew-managed directories.

View File

@@ -46,7 +46,7 @@ def parse_args(argv: list[str]) -> argparse.Namespace:
def default_output_root() -> Path: def default_output_root() -> Path:
workspace = os.environ.get("BUILD_WORKSPACE_DIRECTORY") workspace = os.environ.get("BUILD_WORKSPACE_DIRECTORY")
if workspace: if workspace:
return Path(workspace) / "src" / "ariadne" / "output" return Path(workspace) / "output"
return Path(__file__).resolve().parent / "output" return Path(__file__).resolve().parent / "output"