mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
failed attempt to run on osx 10.4
This commit is contained in:
parent
0b80f4f933
commit
06f05d2ecc
@ -374,18 +374,34 @@ def makeInstaller():
|
|||||||
shutil.copytree(pluginFiles[npapi], dst_npapi)
|
shutil.copytree(pluginFiles[npapi], dst_npapi)
|
||||||
shutil.copyfile(pluginFiles[panda3d], dst_panda3d)
|
shutil.copyfile(pluginFiles[panda3d], dst_panda3d)
|
||||||
shutil.copytree(pluginFiles[panda3dapp], dst_panda3dapp)
|
shutil.copytree(pluginFiles[panda3dapp], dst_panda3dapp)
|
||||||
CMD = "/Developer/usr/bin/packagemaker"
|
|
||||||
CMD += ' --id org.panda3d.pkg.runtime' #TODO: maybe more customizable?
|
packagemaker = "/Developer/usr/bin/packagemaker"
|
||||||
CMD += ' --version "%s"' % options.version
|
if os.path.exists(packagemaker):
|
||||||
CMD += ' --title "%s"' % options.long_name
|
# PackageMaker 3.0 or better, e.g. OSX 10.5.
|
||||||
CMD += ' --out p3d-setup.pkg'
|
CMD = packagemaker
|
||||||
CMD += ' --target %s' % platform.mac_ver()[0][:4]
|
CMD += ' --id org.panda3d.pkg.runtime' #TODO: maybe more customizable?
|
||||||
CMD += ' --domain system'
|
CMD += ' --version "%s"' % options.version
|
||||||
CMD += ' --root "%s"' % tmproot
|
CMD += ' --title "%s"' % options.long_name
|
||||||
|
CMD += ' --out p3d-setup.pkg'
|
||||||
|
CMD += ' --target %s' % platform.mac_ver()[0][:4]
|
||||||
|
CMD += ' --domain system'
|
||||||
|
CMD += ' --root "%s"' % tmproot
|
||||||
|
else:
|
||||||
|
# PackageMaker 2.0, e.g. OSX 10.4.
|
||||||
|
packagemaker = "/Developer/Tools/packagemaker"
|
||||||
|
CMD = packagemaker
|
||||||
|
CMD += ' -build'
|
||||||
|
CMD += ' -f "%s"' % tmproot
|
||||||
|
CMD += ' -p p3d-setup.pkg'
|
||||||
|
# Hmm, this isn't enough. I guess we have to build up an
|
||||||
|
# Info.plist file in this case? It's not clear what the
|
||||||
|
# contents of this file should look like.
|
||||||
|
|
||||||
print ""
|
print ""
|
||||||
print CMD
|
print CMD
|
||||||
subprocess.call(CMD, shell = True)
|
result = subprocess.call(CMD, shell = True)
|
||||||
|
if result:
|
||||||
|
sys.exit(result)
|
||||||
shutil.rmtree(tmproot)
|
shutil.rmtree(tmproot)
|
||||||
|
|
||||||
# Pack the .pkg into a .dmg
|
# Pack the .pkg into a .dmg
|
||||||
@ -395,7 +411,9 @@ def makeInstaller():
|
|||||||
CMD = 'hdiutil create "%s" -srcfolder "%s"' % (tmpdmg, tmproot)
|
CMD = 'hdiutil create "%s" -srcfolder "%s"' % (tmpdmg, tmproot)
|
||||||
print ""
|
print ""
|
||||||
print CMD
|
print CMD
|
||||||
subprocess.call(CMD, shell = True)
|
result = subprocess.call(CMD, shell = True)
|
||||||
|
if result:
|
||||||
|
sys.exit(result)
|
||||||
shutil.rmtree(tmproot)
|
shutil.rmtree(tmproot)
|
||||||
|
|
||||||
# Compress the .dmg (and make it read-only)
|
# Compress the .dmg (and make it read-only)
|
||||||
@ -404,7 +422,9 @@ def makeInstaller():
|
|||||||
CMD = 'hdiutil convert "%s" -format UDBZ -o "p3d-setup.dmg"' % tmpdmg
|
CMD = 'hdiutil convert "%s" -format UDBZ -o "p3d-setup.dmg"' % tmpdmg
|
||||||
print ""
|
print ""
|
||||||
print CMD
|
print CMD
|
||||||
subprocess.call(CMD, shell = True)
|
result = subprocess.call(CMD, shell = True)
|
||||||
|
if result:
|
||||||
|
sys.exit(result)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# Now build the NSIS command.
|
# Now build the NSIS command.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user