Retrait des dll Qt6 non nécéssaires.
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
# -*- mode: python ; coding: utf-8 -*-
|
# -*- mode: python ; coding: utf-8 -*-
|
||||||
|
|
||||||
|
|
||||||
a = Analysis(
|
a = Analysis(
|
||||||
['src\\mainwindow.py'],
|
['src\\mainwindow.py'],
|
||||||
pathex=[],
|
pathex=[],
|
||||||
@@ -96,8 +95,58 @@ a = Analysis(
|
|||||||
'pip',
|
'pip',
|
||||||
],
|
],
|
||||||
noarchive=False,
|
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)
|
pyz = PYZ(a.pure, a.zipped_data)
|
||||||
|
|
||||||
exe = EXE(
|
exe = EXE(
|
||||||
@@ -109,7 +158,7 @@ exe = EXE(
|
|||||||
name='La Tanière Launcher',
|
name='La Tanière Launcher',
|
||||||
debug=False,
|
debug=False,
|
||||||
bootloader_ignore_signals=False,
|
bootloader_ignore_signals=False,
|
||||||
strip=False, # True = enlève symboles debug
|
strip=False,
|
||||||
upx=True,
|
upx=True,
|
||||||
upx_exclude=[
|
upx_exclude=[
|
||||||
"_uuid.pyd",
|
"_uuid.pyd",
|
||||||
@@ -123,7 +172,7 @@ exe = EXE(
|
|||||||
"msvcp*.dll",
|
"msvcp*.dll",
|
||||||
],
|
],
|
||||||
runtime_tmpdir=None,
|
runtime_tmpdir=None,
|
||||||
console=False,
|
console=True,
|
||||||
disable_windowed_traceback=True,
|
disable_windowed_traceback=True,
|
||||||
argv_emulation=False,
|
argv_emulation=False,
|
||||||
target_arch=None,
|
target_arch=None,
|
||||||
|
|||||||
Reference in New Issue
Block a user