BuildMacOSUniversalBinary: Add flag to disable the auto updater
This commit is contained in:
parent
09f326dc7d
commit
42ea36643a
|
@ -74,6 +74,9 @@ DEFAULT_CONFIG = {
|
||||||
|
|
||||||
# Whether we should make a build for Steam.
|
# Whether we should make a build for Steam.
|
||||||
"steam": False,
|
"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
|
# 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",
|
action="store_true",
|
||||||
default=conf["steam"])
|
default=conf["steam"])
|
||||||
|
|
||||||
|
parser.add_argument(
|
||||||
|
"--autoupdate",
|
||||||
|
help="Enables our autoupdate functionality",
|
||||||
|
action=argparse.BooleanOptionalAction,
|
||||||
|
default=conf["autoupdate"])
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--codesign",
|
"--codesign",
|
||||||
help="Code signing identity to use to sign the applications",
|
help="Code signing identity to use to sign the applications",
|
||||||
|
@ -304,7 +313,9 @@ def build(config):
|
||||||
+ config["codesign_identity"],
|
+ config["codesign_identity"],
|
||||||
'-DMACOS_CODE_SIGNING="ON"',
|
'-DMACOS_CODE_SIGNING="ON"',
|
||||||
"-DSTEAM="
|
"-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)
|
env=env, cwd=arch)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue