diff --git a/La Tanière Launcher.spec b/La Tanière Launcher.spec index 718048e..3e1fe66 100644 --- a/La Tanière Launcher.spec +++ b/La Tanière Launcher.spec @@ -1,6 +1,5 @@ # -*- mode: python ; coding: utf-8 -*- - a = Analysis( ['src\\mainwindow.py'], pathex=[], @@ -12,7 +11,7 @@ a = Analysis( hiddenimports=[], hookspath=[], hooksconfig={ - "qt_plugins": ["platforms", "styles"] + "qt_plugins": ["platforms", "styles"] }, runtime_hooks=[], excludes=[ @@ -96,8 +95,58 @@ a = Analysis( 'pip', ], noarchive=False, - optimize=2, # optimisation bytecode + optimize=2, ) + +# --- Filtre des DLLs Qt inutiles --- +# Ces DLLs sont incluses par analyse binaire malgré les excludes Python +unwanted_dlls = [ + 'Qt6Pdf', + 'Qt6Quick', + 'Qt6Qml', + 'Qt6QmlModels', + 'Qt6QmlWorkerScript', + 'Qt6WebEngine', + 'Qt6WebEngineCore', + 'Qt63DCore', + 'Qt63DRender', + 'Qt63DAnimation', + 'Qt63DExtras', + 'Qt63DInput', + 'Qt63DLogic', + 'Qt6Charts', + 'Qt6DataVisualization', + 'Qt6Bluetooth', + 'Qt6Nfc', + 'Qt6Positioning', + 'Qt6Location', + 'Qt6RemoteObjects', + 'Qt6Scxml', + 'Qt6Sensors', + 'Qt6SerialBus', + 'Qt6SerialPort', + 'Qt6SpatialAudio', + 'Qt6StateMachine', + # 'Qt6Svg', # Dependance lecteur svg + 'Qt6TextToSpeech', + 'Qt6WebChannel', + 'Qt6WebSockets', + 'Qt6Sql', + 'Qt6Test', + # 'Qt6OpenGL', # Dependance a Qt6UiTools + 'Qt6PrintSupport', + # 'Qt6Xml', # Dependance fichier .ui + 'Qt6Help', + 'Qt6Designer', + 'Qt6Concurrent', +] + +a.binaries = [ + (name, path, typecode) + for name, path, typecode in a.binaries + if not any(u.lower() in name.lower() for u in unwanted_dlls) +] + pyz = PYZ(a.pure, a.zipped_data) exe = EXE( @@ -109,7 +158,7 @@ exe = EXE( name='La Tanière Launcher', debug=False, bootloader_ignore_signals=False, - strip=False, # True = enlève symboles debug + strip=False, upx=True, upx_exclude=[ "_uuid.pyd", @@ -123,7 +172,7 @@ exe = EXE( "msvcp*.dll", ], runtime_tmpdir=None, - console=False, + console=True, disable_windowed_traceback=True, argv_emulation=False, target_arch=None,