diff options
author | Davide Beatrici <git@davidebeatrici.dev> | 2020-12-24 07:04:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-24 07:04:25 +0300 |
commit | db4b6bee1562383b1f47251b63d320e4204f92e9 (patch) | |
tree | 13407f10538c76d2346c10e990e910a248af914c | |
parent | 1998624fd43267d4a227970f6bc506593342e8d6 (diff) | |
parent | f19a645c38a5ed7a67dcdee6ca147fb1eba05eeb (diff) |
Merge PR #4649: BUILD(macOS): Only include ".dylib" files in bundle's "Plugins" directory1.4.0-development-snapshot-001
-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): ''' |