dll filer
This commit is contained in:
@@ -2,10 +2,32 @@
|
||||
|
||||
block_cipher = None
|
||||
|
||||
import os, glob
|
||||
|
||||
# Find VLC installation
|
||||
VLC_PATH = None
|
||||
for _p in [
|
||||
r'C:\Program Files\VideoLAN\VLC',
|
||||
r'C:\Program Files (x86)\VideoLAN\VLC',
|
||||
]:
|
||||
if os.path.exists(os.path.join(_p, 'libvlc.dll')):
|
||||
VLC_PATH = _p
|
||||
break
|
||||
|
||||
VLC_BINARIES = []
|
||||
if VLC_PATH:
|
||||
VLC_BINARIES = [
|
||||
(os.path.join(VLC_PATH, 'libvlc.dll'), '.'),
|
||||
(os.path.join(VLC_PATH, 'libvlccore.dll'), '.'),
|
||||
]
|
||||
for _dll in glob.glob(os.path.join(VLC_PATH, 'plugins', '**', '*.dll'), recursive=True):
|
||||
_rel = os.path.relpath(os.path.dirname(_dll), VLC_PATH)
|
||||
VLC_BINARIES.append((_dll, _rel))
|
||||
|
||||
a = Analysis(
|
||||
['main.py'],
|
||||
pathex=['.'],
|
||||
binaries=[],
|
||||
binaries=VLC_BINARIES,
|
||||
datas=[
|
||||
('translations', 'translations'),
|
||||
],
|
||||
@@ -20,7 +42,7 @@ a = Analysis(
|
||||
'ui.scan_worker', 'ui.bpm_worker', 'ui.tag_editor',
|
||||
'ui.settings_dialog', 'ui.playlist_browser',
|
||||
'ui.playlist_info_dialog', 'ui.dance_info_dialog',
|
||||
'ui.dance_picker_dialog', 'ui.share_dialog',
|
||||
'ui.dance_picker_dialog', 'ui.alt_dance_picker_dialog', 'ui.share_dialog',
|
||||
'ui.register_dialog',
|
||||
'player.player',
|
||||
'local.local_db', 'local.scanner', 'local.file_watcher',
|
||||
|
||||
Reference in New Issue
Block a user