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 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/
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user