mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
don't rely on packagemaker's exit status
This commit is contained in:
parent
c1a6111753
commit
189a380f04
@ -431,14 +431,19 @@ def makeInstaller():
|
|||||||
|
|
||||||
print ""
|
print ""
|
||||||
print CMD
|
print CMD
|
||||||
result = subprocess.call(CMD, shell = True)
|
|
||||||
if result:
|
# Don't check the exit status of packagemaker; it's not always
|
||||||
sys.exit(result)
|
# reliable.
|
||||||
|
subprocess.call(CMD, shell = True)
|
||||||
shutil.rmtree(tmproot)
|
shutil.rmtree(tmproot)
|
||||||
|
|
||||||
if plistFilename:
|
if plistFilename:
|
||||||
os.unlink(plistFilename)
|
os.unlink(plistFilename)
|
||||||
|
|
||||||
|
if not os.path.exists('p3d-setup.pkg'):
|
||||||
|
print "Unable to create p3d-setup.pkg."
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
# Pack the .pkg into a .dmg
|
# Pack the .pkg into a .dmg
|
||||||
if not os.path.exists(tmproot): os.makedirs(tmproot)
|
if not os.path.exists(tmproot): os.makedirs(tmproot)
|
||||||
shutil.copytree("p3d-setup.pkg", os.path.join(tmproot, "p3d-setup.pkg"))
|
shutil.copytree("p3d-setup.pkg", os.path.join(tmproot, "p3d-setup.pkg"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user