diff options
author | Davide Beatrici <git@davidebeatrici.dev> | 2020-12-24 04:27:13 +0300 |
---|---|---|
committer | Davide Beatrici <git@davidebeatrici.dev> | 2020-12-24 04:27:13 +0300 |
commit | f19a645c38a5ed7a67dcdee6ca147fb1eba05eeb (patch) | |
tree | 13407f10538c76d2346c10e990e910a248af914c /macx | |
parent | 1998624fd43267d4a227970f6bc506593342e8d6 (diff) |
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".
Diffstat (limited to 'macx')
-rwxr-xr-x | macx/scripts/osxdist.py | 9 |
1 files 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): ''' |