|
|
@@ -3625,10 +3625,10 @@ def MakeInstallerOSX():
|
|
|
if ((base != "extensions") and (base != "extensions_native")):
|
|
|
compileall.compile_dir("Panda3D-tpl-rw/Panda3D/"+VERSION+"/lib/direct/src/"+base)
|
|
|
compileall.compile_dir("Panda3D-tpl-rw/Panda3D/"+VERSION+"/lib/Pmw")
|
|
|
- oscmd("chmod -R 555 Panda3D-tpl-rw/Panda3D/"+VERSION+"/samples")
|
|
|
oscmd("chmod -R 555 Panda3D-tpl-rw/Panda3D/"+VERSION+"/lib/direct")
|
|
|
oscmd("chmod -R 555 Panda3D-tpl-rw/Panda3D/"+VERSION+"/lib/pandac")
|
|
|
- oscmd("chmod -R 555 Panda3D-tpl-rw/Panda3D/"+VERSION+"/lib/Pmw")
|
|
|
+ if os.path.isdir("samples"): oscmd("chmod -R 555 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")
|
|
|
oscmd("rm -f Panda3D-tpl-rw.dmg")
|