BuildMacOSUniversalBinary: Add support for setting the distributor
This commit is contained in:
parent
e83b6e19ab
commit
d340cad6bb
|
@ -76,7 +76,10 @@ DEFAULT_CONFIG = {
|
|||
"steam": False,
|
||||
|
||||
# Whether our autoupdate functionality is enabled or not.
|
||||
"autoupdate": True
|
||||
"autoupdate": True,
|
||||
|
||||
# The distributor for this build.
|
||||
"distributor": "None"
|
||||
}
|
||||
|
||||
# Architectures to build for. This is explicity left out of the command line
|
||||
|
@ -136,6 +139,11 @@ def parse_args(conf=DEFAULT_CONFIG):
|
|||
action=argparse.BooleanOptionalAction,
|
||||
default=conf["autoupdate"])
|
||||
|
||||
parser.add_argument(
|
||||
"--distributor",
|
||||
help="Sets the distributor for this build",
|
||||
default=conf["distributor"])
|
||||
|
||||
parser.add_argument(
|
||||
"--codesign",
|
||||
help="Code signing identity to use to sign the applications",
|
||||
|
@ -316,6 +324,7 @@ def build(config):
|
|||
+ python_to_cmake_bool(config["steam"]),
|
||||
"-DENABLE_AUTOUPDATE="
|
||||
+ python_to_cmake_bool(config["autoupdate"]),
|
||||
'-DDISTRIBUTOR=' + config['distributor']
|
||||
],
|
||||
env=env, cwd=arch)
|
||||
|
||||
|
|
Loading…
Reference in New Issue