diff --git a/makepanda/makepackage.py b/makepanda/makepackage.py index c0eac19f1f..3be7cff675 100755 --- a/makepanda/makepackage.py +++ b/makepanda/makepackage.py @@ -388,7 +388,8 @@ def MakeInstallerOSX(version, python_versions=[], installdir=None, **kwargs): oscmd("cp -R %s/models dstroot/base/%s/models" % (outputdir, installdir)) oscmd("cp -R doc/LICENSE dstroot/base/%s/LICENSE" % installdir) oscmd("cp -R doc/ReleaseNotes dstroot/base/%s/ReleaseNotes" % installdir) - oscmd("cp -R %s/Frameworks dstroot/base/%s/Frameworks" % (outputdir, installdir)) + if os.path.isdir(outputdir+"/Frameworks") and os.listdir(outputdir+"/Frameworks"): + oscmd("cp -R %s/Frameworks dstroot/base/%s/Frameworks" % (outputdir, installdir)) if os.path.isdir(outputdir+"/plugins"): oscmd("cp -R %s/plugins dstroot/base/%s/plugins" % (outputdir, installdir)) diff --git a/makepanda/makepanda.py b/makepanda/makepanda.py index 9648937ad7..5f32e6e9e1 100755 --- a/makepanda/makepanda.py +++ b/makepanda/makepanda.py @@ -2911,6 +2911,7 @@ if tp_dir is not None: JustBuilt([target], [tp_lib]) for fwx in glob.glob(tp_pkg + "/*.framework"): + MakeDirectory(GetOutputDir() + "/Frameworks") CopyTree(GetOutputDir() + "/Frameworks/" + os.path.basename(fwx), fwx) else: # Linux / FreeBSD case. diff --git a/makepanda/makepandacore.py b/makepanda/makepandacore.py index 74367cfcee..0ce86d1a5f 100644 --- a/makepanda/makepandacore.py +++ b/makepanda/makepandacore.py @@ -1237,10 +1237,7 @@ def MakeBuildTree(): MakeDirectory(OUTPUTDIR + "/pandac/input") MakeDirectory(OUTPUTDIR + "/panda3d") - if GetTarget() == 'darwin': - MakeDirectory(OUTPUTDIR + "/Frameworks") - - elif GetTarget() == 'android': + if GetTarget() == 'android': MakeDirectory(OUTPUTDIR + "/classes") ########################################################################