Skip to content

Commit d340cad

Browse files
committed
BuildMacOSUniversalBinary: Add support for setting the distributor
1 parent e83b6e1 commit d340cad

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

BuildMacOSUniversalBinary.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@
7676
"steam": False,
7777

7878
# Whether our autoupdate functionality is enabled or not.
79-
"autoupdate": True
79+
"autoupdate": True,
80+
81+
# The distributor for this build.
82+
"distributor": "None"
8083
}
8184

8285
# Architectures to build for. This is explicity left out of the command line
@@ -136,6 +139,11 @@ def parse_args(conf=DEFAULT_CONFIG):
136139
action=argparse.BooleanOptionalAction,
137140
default=conf["autoupdate"])
138141

142+
parser.add_argument(
143+
"--distributor",
144+
help="Sets the distributor for this build",
145+
default=conf["distributor"])
146+
139147
parser.add_argument(
140148
"--codesign",
141149
help="Code signing identity to use to sign the applications",
@@ -316,6 +324,7 @@ def build(config):
316324
+ python_to_cmake_bool(config["steam"]),
317325
"-DENABLE_AUTOUPDATE="
318326
+ python_to_cmake_bool(config["autoupdate"]),
327+
'-DDISTRIBUTOR=' + config['distributor']
319328
],
320329
env=env, cwd=arch)
321330

0 commit comments

Comments
 (0)