From f19a645c38a5ed7a67dcdee6ca147fb1eba05eeb Mon Sep 17 00:00:00 2001 From: Davide Beatrici Date: Thu, 24 Dec 2020 02:27:13 +0100 Subject: BUILD(macOS): Only include ".dylib" files in bundle's "Plugins" directory In addition to the plugins, the "plugins" folder in the build directory also contains temporary build files. As the script was copying the entire tree, those files made their way into the bundle. This commit fixes the issue by explicitly copying only files that end with ".dylib". --- macx/scripts/osxdist.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/macx/scripts/osxdist.py b/macx/scripts/osxdist.py index 12705d324..21ccc14a5 100755 --- a/macx/scripts/osxdist.py +++ b/macx/scripts/osxdist.py @@ -13,7 +13,7 @@ # by Thomas Keller). # -import sys, os, string, re, shutil, plistlib, tempfile, exceptions, datetime, tarfile +import sys, os, string, re, shutil, plistlib, tempfile, exceptions, datetime, tarfile, glob from subprocess import Popen, PIPE from optparse import OptionParser @@ -149,9 +149,10 @@ class AppBundle(object): ''' print ' * Copying positional audio plugins' dst = os.path.join(self.bundle, 'Contents', 'Plugins') - if os.path.exists(dst): - shutil.rmtree(dst) - shutil.copytree(os.path.join(options.binary_dir, 'plugins'), dst, symlinks=True) + if not os.path.exists(dst): + os.makedirs(dst) + for plugin in glob.glob('plugins/*.dylib'): + shutil.copy(plugin, dst) def update_plist(self): ''' -- cgit v1.2.3