Bladeren bron

Changes to OSX installer for new Panda3D.app bundle

rdb 16 jaren geleden
bovenliggende
commit
54ba9f4070
2 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 2 2
      direct/src/plugin_installer/make_installer.py
  2. 1 1
      makepanda/makepandacore.py

+ 2 - 2
direct/src/plugin_installer/make_installer.py

@@ -204,7 +204,7 @@ def makeInstaller():
     # up the plugin/runtime.
     # up the plugin/runtime.
     if sys.platform == "darwin":
     if sys.platform == "darwin":
         npapi = 'nppanda3d.plugin'
         npapi = 'nppanda3d.plugin'
-        panda3d = 'panda3d'
+        panda3d = 'Panda3D.app'
         baseFiles = [npapi, panda3d]
         baseFiles = [npapi, panda3d]
     else:
     else:
         ocx = 'p3dactivex.ocx'
         ocx = 'p3dactivex.ocx'
@@ -239,7 +239,7 @@ def makeInstaller():
             shutil.rmtree(tmproot.toOsSpecific())
             shutil.rmtree(tmproot.toOsSpecific())
         tmproot.makeDir()
         tmproot.makeDir()
         dst_npapi = Filename(tmproot, Filename("Library/Internet Plug-Ins", npapi))
         dst_npapi = Filename(tmproot, Filename("Library/Internet Plug-Ins", npapi))
-        dst_panda3d = Filename(tmproot, Filename("usr/bin", panda3d))
+        dst_panda3d = Filename(tmproot, Filename("Applications", panda3d))
         dst_npapi.makeDir()
         dst_npapi.makeDir()
         dst_panda3d.makeDir()
         dst_panda3d.makeDir()
         shutil.copytree(pluginFiles[npapi], dst_npapi.toOsSpecific())
         shutil.copytree(pluginFiles[npapi], dst_npapi.toOsSpecific())

+ 1 - 1
makepanda/makepandacore.py

@@ -1582,7 +1582,7 @@ def CalcLocation(fn, ipath):
         if (fn.endswith(".dat")):   return OUTPUTDIR+"/tmp/"+fn
         if (fn.endswith(".dat")):   return OUTPUTDIR+"/tmp/"+fn
         if (fn.endswith(".rsrc")):  return OUTPUTDIR+"/tmp/"+fn
         if (fn.endswith(".rsrc")):  return OUTPUTDIR+"/tmp/"+fn
         if (fn.endswith(".plugin")):return OUTPUTDIR+"/plugins/"+fn
         if (fn.endswith(".plugin")):return OUTPUTDIR+"/plugins/"+fn
-        if (fn.endswith(".app")):   return OUTPUTDIR+"/"+fn
+        if (fn.endswith(".app")):   return OUTPUTDIR+"/bin/"+fn
         if (fn.endswith(".in")):    return OUTPUTDIR+"/pandac/input/"+fn
         if (fn.endswith(".in")):    return OUTPUTDIR+"/pandac/input/"+fn
     else:
     else:
         if (fn.endswith(".obj")): return OUTPUTDIR+"/tmp/"+fn[:-4]+".o"
         if (fn.endswith(".obj")): return OUTPUTDIR+"/tmp/"+fn[:-4]+".o"