From a8d7b4b710b5df132e5451a94d50f337a5a61ba3 Mon Sep 17 00:00:00 2001 From: Daniel Wong Date: Fri, 14 Jul 2023 20:22:31 +1000 Subject: [PATCH] Change arg to disable translation, rather than to have no effect - translation output is enabled by default --- build.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/build.py b/build.py index 77e29f5..0fd7287 100644 --- a/build.py +++ b/build.py @@ -267,14 +267,11 @@ parser.add_argument( choices=["all", "github_actions"] + list(chapter_to_build_variants.keys()), ) parser.add_argument("--force-download", default=False, action='store_true') -parser.add_argument("--translation", default=False, action='store_true') +parser.add_argument("--disable-translation", default=False, action='store_true') args = parser.parse_args() force_download = args.force_download -# NOTE: For now, translation archive output is always enabled, as most of the time this script will be used for translators -translation = args.translation - # Get chapter name from git tag if "github_actions" specified as the chapter chapter_name = args.chapter if chapter_name == "github_actions": @@ -285,13 +282,21 @@ if chapter_name == "github_actions": ) exit(0) -# NOTE: For now, translation archive output is always enabled, as most of the time this script will be used for translators +# NOTE: For now, translation archive output is enabled by default, as most of the time this script will be used for translators translation = True +if args.disable_translation: + translation = False + # Get a list of build variants (like 'onikakushi 5.2.2f1 win') depending on commmand line arguments build_variants = get_build_variants(chapter_name) build_variants_list = "\n - ".join([b.get_build_command() for b in build_variants]) -print(f"For chapter '{chapter_name}' building:\n - {build_variants_list}") +print(f"-------- Build Started --------") +print(f"Chapter: [{chapter_name}] | Translation Archive Output: [{('Enabled' if translation else 'Disabled')}]") +print(f"Variants:") +print(f" - {build_variants_list}") +print(f"-------------------------------") +print() # Install python dependencies print("Installing python dependencies")