fix(clew): default output to repository root
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -20,6 +20,9 @@ Thumbs.db
|
||||
# Bazel convenience symlinks
|
||||
/bazel-*
|
||||
|
||||
# local generated output
|
||||
/output/
|
||||
|
||||
# language package-manager caches and outputs
|
||||
node_modules/
|
||||
dist/
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user