From d340cad6bbcd498279fbfa6d59c4ac2382f69196 Mon Sep 17 00:00:00 2001 From: OatmealDome Date: Tue, 14 Mar 2023 15:04:50 -0400 Subject: [PATCH] BuildMacOSUniversalBinary: Add support for setting the distributor --- BuildMacOSUniversalBinary.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/BuildMacOSUniversalBinary.py b/BuildMacOSUniversalBinary.py index 6ac9ae9e55..442fb83fe7 100755 --- a/BuildMacOSUniversalBinary.py +++ b/BuildMacOSUniversalBinary.py @@ -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)