Skip to content

Commit

Permalink
Merge pull request dolphin-emu#11657 from OatmealDome/macos-distributor
Browse files Browse the repository at this point in the history
BuildMacOSUniversalBinary: Add support for setting the distributor
  • Loading branch information
delroth authored Mar 15, 2023
2 parents 4281606 + d340cad commit b43f832
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion BuildMacOSUniversalBinary.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@
"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
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit b43f832

Please sign in to comment.