makepackage: prevent installation of package on macOS <10.9 (#300)

This commit is contained in:
rdb 2019-12-30 02:42:08 +01:00
parent b78b7be326
commit c71234eda9
1 changed files with 4 additions and 1 deletions

View File

@ -537,7 +537,10 @@ def MakeInstallerOSX(version, python_versions=[], **kwargs):
dist.write('<?xml version="1.0" encoding="utf-8"?>\n')
dist.write('<installer-script minSpecVersion="1.000000" authoringTool="com.apple.PackageMaker" authoringToolVersion="3.0.3" authoringToolBuild="174">\n')
dist.write(' <title>Panda3D SDK %s</title>\n' % (version))
dist.write(' <options customize="always" allow-external-scripts="no" rootVolumeOnly="false"/>\n')
dist.write(' <allowed-os-versions>\n')
dist.write(' <os-version min="10.9"/>\n')
dist.write(' </allowed-os-versions>\n')
dist.write(' <options customize="always" allow-external-scripts="no" rootVolumeOnly="false" hostArchitectures="x86_64"/>\n')
dist.write(' <license language="en" mime-type="text/plain">%s</license>\n' % ReadFile("doc/LICENSE"))
dist.write(' <script>\n')
dist.write(' function isPythonVersionInstalled(version) {\n')