From 42ea36643a425bf8d33c0de9e115aafcb0141080 Mon Sep 17 00:00:00 2001 From: OatmealDome Date: Thu, 22 Sep 2022 22:27:25 -0400 Subject: [PATCH] BuildMacOSUniversalBinary: Add flag to disable the auto updater --- BuildMacOSUniversalBinary.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/BuildMacOSUniversalBinary.py b/BuildMacOSUniversalBinary.py index 99e62b1bc6..6dc8d39bd7 100755 --- a/BuildMacOSUniversalBinary.py +++ b/BuildMacOSUniversalBinary.py @@ -74,6 +74,9 @@ DEFAULT_CONFIG = { # Whether we should make a build for Steam. "steam": False, + + # Whether our autoupdate functionality is enabled or not. + "autoupdate": True } # Architectures to build for. This is explicity left out of the command line @@ -127,6 +130,12 @@ def parse_args(conf=DEFAULT_CONFIG): action="store_true", default=conf["steam"]) + parser.add_argument( + "--autoupdate", + help="Enables our autoupdate functionality", + action=argparse.BooleanOptionalAction, + default=conf["autoupdate"]) + parser.add_argument( "--codesign", help="Code signing identity to use to sign the applications", @@ -304,7 +313,9 @@ def build(config): + config["codesign_identity"], '-DMACOS_CODE_SIGNING="ON"', "-DSTEAM=" - + python_to_cmake_bool(config["steam"]) + + python_to_cmake_bool(config["steam"]), + "-DENABLE_AUTOUPDATE=" + + python_to_cmake_bool(config["autoupdate"]), ], env=env, cwd=arch)