67 lines
1.4 KiB
Python
67 lines
1.4 KiB
Python
# -*- mode: python ; coding: utf-8 -*-
|
|
# PyInstaller spec-fil til LineDance Player
|
|
|
|
block_cipher = None
|
|
|
|
a = Analysis(
|
|
['main.py'],
|
|
pathex=['.'],
|
|
binaries=[],
|
|
datas=[],
|
|
hiddenimports=[
|
|
'PyQt6.QtCore',
|
|
'PyQt6.QtGui',
|
|
'PyQt6.QtWidgets',
|
|
'mutagen',
|
|
'mutagen.mp3',
|
|
'mutagen.id3',
|
|
'mutagen.flac',
|
|
'mutagen.mp4',
|
|
'mutagen.oggvorbis',
|
|
'watchdog',
|
|
'watchdog.observers',
|
|
'watchdog.events',
|
|
'vlc',
|
|
'sqlite3',
|
|
],
|
|
hookspath=[],
|
|
hooksconfig={},
|
|
runtime_hooks=[],
|
|
excludes=['tkinter', 'matplotlib', 'numpy', 'pandas'],
|
|
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=True,
|
|
console=False, # Ingen sort konsol-vindue
|
|
disable_windowed_traceback=False,
|
|
target_arch=None,
|
|
codesign_identity=None,
|
|
entitlements_file=None,
|
|
icon=None, # Tilføj .ico fil her hvis du har et ikon
|
|
)
|
|
|
|
coll = COLLECT(
|
|
exe,
|
|
a.binaries,
|
|
a.zipfiles,
|
|
a.datas,
|
|
strip=False,
|
|
upx=True,
|
|
upx_exclude=[],
|
|
name='LineDancePlayer',
|
|
)
|