# -*- mode: python ; coding: utf-8 -*- from PyInstaller.utils.hooks import collect_all, collect_submodules block_cipher = None # Saml ALT fra PyQt6 inkl. plugins og DLL-filer pyqt6_datas, pyqt6_binaries, pyqt6_hiddenimports = collect_all('PyQt6') a = Analysis( ['main.py'], pathex=['.'], binaries=pyqt6_binaries, datas=pyqt6_datas, hiddenimports=pyqt6_hiddenimports + [ 'PyQt6.sip', 'PyQt6.QtCore', 'PyQt6.QtGui', 'PyQt6.QtWidgets', # UI moduler 'ui.main_window', 'ui.playlist_panel', 'ui.library_panel', 'ui.library_manager', 'ui.themes', 'ui.vu_meter', 'ui.scan_worker', 'ui.tag_editor', 'ui.login_dialog', 'ui.settings_dialog', 'ui.playlist_manager', 'ui.next_up_bar', # Player + local 'player.player', 'local.local_db', 'local.tag_reader', 'local.file_watcher', # Biblioteker 'mutagen', 'mutagen.mp3', 'mutagen.id3', 'mutagen.flac', 'mutagen.mp4', 'mutagen.oggvorbis', 'mutagen.ogg', 'mutagen.wave', 'mutagen.aiff', 'mutagen.asf', 'watchdog', 'watchdog.observers', 'watchdog.events', 'watchdog.observers.winapi', 'vlc', 'sqlite3', ], hookspath=[], hooksconfig={}, runtime_hooks=[], excludes=['tkinter', 'matplotlib', 'pandas', 'scipy', 'IPython'], win_no_prefer_redirects=False, win_private_assemblies=False, cipher=block_cipher, noarchive=False, ) pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) exe = EXE( pyz, a.scripts, [], exclude_binaries=True, name='LineDancePlayer', debug=False, bootloader_ignore_signals=False, strip=False, upx=False, # UPX kan give problemer med PyQt6 DLL-filer console=True, # Vis fejlbeskeder disable_windowed_traceback=False, target_arch=None, codesign_identity=None, entitlements_file=None, icon=None, ) coll = COLLECT( exe, a.binaries, a.zipfiles, a.datas, strip=False, upx=False, upx_exclude=[], name='LineDancePlayer', )