Suggested change from Nemesis13

This commit is contained in:
rdb 2008-10-31 21:42:52 +00:00
parent f9f21384db
commit 99764f8e2a

View File

@ -3568,6 +3568,7 @@ def MakeInstallerLinux():
compileall.compile_dir("linuxroot/usr/share/panda3d/Pmw")
DeleteCVS("linuxroot")
oscmd("chmod -R 555 linuxroot/usr/share/panda3d")
oscmd("chmod -R 444 linuxroot/usr/share/panda3d/models")
if (os.path.exists("/usr/bin/dpkg-deb")):
txt = INSTALLER_DEB_FILE[1:].replace("VERSION",str(VERSION)).replace("PYTHONV",PYTHONV).replace("ARCH",ARCH)
@ -3637,7 +3638,7 @@ def MakeInstallerOSX():
compileall.compile_dir("Panda3D-tpl-rw/Panda3D/"+VERSION+"/lib/Pmw")
oscmd("chmod -R 555 Panda3D-tpl-rw/Panda3D/"+VERSION+"/lib/direct")
oscmd("chmod -R 555 Panda3D-tpl-rw/Panda3D/"+VERSION+"/lib/pandac")
if os.path.isdir("samples"): oscmd("chmod -R 555 Panda3D-tpl-rw/Panda3D/"+VERSION+"/samples")
if os.path.isdir("samples"): oscmd("chmod -R 444 Panda3D-tpl-rw/Panda3D/"+VERSION+"/samples")
if os.path.isdir("built/Pmw"): oscmd("chmod -R 555 Panda3D-tpl-rw/Panda3D/"+VERSION+"/lib/Pmw")
except: # Make sure the dmg gets unmounted even when error occurs
oscmd("hdiutil detach Panda3D-tpl-rw -quiet -force", True)