diff options
| author | Aetias <aetias@outlook.com> | 2025-03-15 16:40:31 +0100 |
|---|---|---|
| committer | Aetias <aetias@outlook.com> | 2025-03-15 16:40:31 +0100 |
| commit | 4392bb30ebabf312bb23b733f96afbc3462e1d38 (patch) | |
| tree | c80f03a40c94402b16b9f893379383c582befbb7 /tools | |
| parent | 993f1420df139945419a38b7487d23c7d4434290 (diff) | |
Add `--dsd` option
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/configure.py | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/tools/configure.py b/tools/configure.py index 50779107..d8681804 100755 --- a/tools/configure.py +++ b/tools/configure.py @@ -15,7 +15,8 @@ DEFAULT_WIBO_PATH = "./wibo" parser = argparse.ArgumentParser(description="Generates build.ninja") parser.add_argument('-w', type=str, default=DEFAULT_WIBO_PATH, dest="wine", required=False, help="Path to Wine/Wibo (linux only)") parser.add_argument("--compiler", type=Path, required=False, help="Path to pre-installed compiler root directory") -parser.add_argument("--no-extract", type=bool, required=False, help="Skip extract step") +parser.add_argument("--no-extract", action="store_true", help="Skip extract step") +parser.add_argument("--dsd", type=Path, required=False, help="Path to pre-installed dsd CLI") parser.add_argument('version', help='Game version') args = parser.parse_args() @@ -281,16 +282,17 @@ def main(): def add_download_tool_builds(n: ninja_syntax.Writer): - n.build( - rule="download_tool", - outputs=DSD, - variables={ - "tool": "dsd", - "tag": DSD_VERSION, - "path": DSD, - }, - ) - n.newline() + if args.dsd is None: + n.build( + rule="download_tool", + outputs=DSD, + variables={ + "tool": "dsd", + "tag": DSD_VERSION, + "path": DSD, + }, + ) + n.newline() n.build( rule="download_tool", |
