Merge pull request #11657 from OatmealDome/macos-distributor

BuildMacOSUniversalBinary: Add support for setting the distributor
This commit is contained in:
Pierre Bourdon 2023-03-15 15:18:19 +01:00 committed by GitHub
commit b43f832866
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions

View File

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