From bb5d48393636007ae09d58098ea1454d4ed4b120 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Mon, 8 May 2023 21:43:17 -0700 Subject: [PATCH] Copy VLC files into macOS --- builders/macosx-builder.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/builders/macosx-builder.py b/builders/macosx-builder.py index 984649b..547d7d6 100644 --- a/builders/macosx-builder.py +++ b/builders/macosx-builder.py @@ -285,7 +285,8 @@ class MacOSXBuilder(Builder): os.makedirs(vlc_dest) for fname in ['libvlc.dylib', 'libvlccore.dylib']: self._print_verbose('... {}'.format(fname)) - copy(os.path.join(vlc_path, 'lib', fname), os.path.join(vlc_dest, fname)) + dest_file = os.readlink(os.path.join(vlc_path, 'lib', fname)) + copy(os.path.join(vlc_path, 'lib', dest_file), os.path.join(vlc_dest, fname)) self._relink_binary(os.path.join('vlc', fname)) if os.path.exists(os.path.join(vlc_dest, 'plugins')): rmtree(os.path.join(vlc_dest, 'plugins')) @@ -390,7 +391,7 @@ class MacOSXBuilder(Builder): """ self._print('Copying extra files for macOS...') # Exclude VLC for now, at least - # self._copy_vlc_files() + self._copy_vlc_files() self._copy_bundle_files() self._copy_macosx_files() self._install_pyro4()