BuildMacOSUniversalBinary: Add flag to disable the auto updater

This commit is contained in:
OatmealDome 2022-09-22 22:27:25 -04:00
parent 09f326dc7d
commit 42ea36643a
1 changed files with 12 additions and 1 deletions

View File

@ -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)