Changes to OSX installer for new Panda3D.app bundle

This commit is contained in:
rdb 2009-10-24 09:53:38 +00:00
parent e9e69c9e10
commit 54ba9f4070
2 changed files with 3 additions and 3 deletions

View File

@ -204,7 +204,7 @@ def makeInstaller():
# up the plugin/runtime.
if sys.platform == "darwin":
npapi = 'nppanda3d.plugin'
panda3d = 'panda3d'
panda3d = 'Panda3D.app'
baseFiles = [npapi, panda3d]
else:
ocx = 'p3dactivex.ocx'
@ -239,7 +239,7 @@ def makeInstaller():
shutil.rmtree(tmproot.toOsSpecific())
tmproot.makeDir()
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_panda3d.makeDir()
shutil.copytree(pluginFiles[npapi], dst_npapi.toOsSpecific())

View File

@ -1582,7 +1582,7 @@ def CalcLocation(fn, ipath):
if (fn.endswith(".dat")): return OUTPUTDIR+"/tmp/"+fn
if (fn.endswith(".rsrc")): return OUTPUTDIR+"/tmp/"+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
else:
if (fn.endswith(".obj")): return OUTPUTDIR+"/tmp/"+fn[:-4]+".o"