1
0
mirror of https://gitlab.com/openlp/packaging.git synced 2024-12-22 04:52:50 +00:00

Copy VLC files into macOS

This commit is contained in:
Raoul Snyman 2023-05-08 21:43:17 -07:00
parent 34aca98b1a
commit bb5d483936
No known key found for this signature in database
GPG Key ID: 7347E1FA47B16091

View File

@ -285,7 +285,8 @@ class MacOSXBuilder(Builder):
os.makedirs(vlc_dest) os.makedirs(vlc_dest)
for fname in ['libvlc.dylib', 'libvlccore.dylib']: for fname in ['libvlc.dylib', 'libvlccore.dylib']:
self._print_verbose('... {}'.format(fname)) 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)) self._relink_binary(os.path.join('vlc', fname))
if os.path.exists(os.path.join(vlc_dest, 'plugins')): if os.path.exists(os.path.join(vlc_dest, 'plugins')):
rmtree(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...') self._print('Copying extra files for macOS...')
# Exclude VLC for now, at least # Exclude VLC for now, at least
# self._copy_vlc_files() self._copy_vlc_files()
self._copy_bundle_files() self._copy_bundle_files()
self._copy_macosx_files() self._copy_macosx_files()
self._install_pyro4() self._install_pyro4()