makepackage: fix None installdir when not passing in any on macOS

This commit is contained in:
rdb 2020-01-04 14:14:12 +01:00
parent c28ab63481
commit b7017669a1

View File

@ -473,9 +473,12 @@ def MakeInstallerLinux(version, debversion=None, rpmrelease=1, runtime=False,
exit("To build an installer, either rpmbuild or dpkg-deb must be present on your system!")
def MakeInstallerOSX(version, runtime=False, python_versions=[], installdir="/Library/Developer/Panda3D", **kwargs):
def MakeInstallerOSX(version, runtime=False, python_versions=[], installdir=None, **kwargs):
outputdir = GetOutputDir()
if installdir is None:
installdir = "/Library/Developer/Panda3D"
if runtime:
# Invoke the make_installer script.
AddToPathEnv("DYLD_LIBRARY_PATH", outputdir + "/plugins")