optimisation .spec
This commit is contained in:
@@ -29,7 +29,6 @@ a = Analysis(
|
|||||||
(str(BASE_DIR / 'ui' / 'mainwindow_vertical_pager.ui'), 'ui'),
|
(str(BASE_DIR / 'ui' / 'mainwindow_vertical_pager.ui'), 'ui'),
|
||||||
],
|
],
|
||||||
hiddenimports=[
|
hiddenimports=[
|
||||||
"asyncio",
|
|
||||||
"pypresence"
|
"pypresence"
|
||||||
],
|
],
|
||||||
hookspath=[],
|
hookspath=[],
|
||||||
@@ -191,7 +190,7 @@ a = Analysis(
|
|||||||
"win32service",
|
"win32service",
|
||||||
"win32serviceutil",
|
"win32serviceutil",
|
||||||
],
|
],
|
||||||
noarchive=False,
|
noarchive=True,
|
||||||
optimize=2,
|
optimize=2,
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -239,11 +238,31 @@ unwanted_dlls = [
|
|||||||
'Qt6Concurrent',
|
'Qt6Concurrent',
|
||||||
]
|
]
|
||||||
|
|
||||||
a.binaries = [
|
new_binaries = []
|
||||||
(name, path, typecode)
|
|
||||||
for name, path, typecode in a.binaries
|
for item in a.binaries:
|
||||||
if not any(u.lower() in name.lower() for u in unwanted_dlls)
|
name = item[0].lower()
|
||||||
]
|
|
||||||
|
# filtre 1 : tes unwanted_dlls
|
||||||
|
if any(u.lower() in name for u in unwanted_dlls):
|
||||||
|
continue
|
||||||
|
|
||||||
|
# filtre 2 : nettoyage Qt
|
||||||
|
if any(x in name for x in [
|
||||||
|
# "imageformats", # à activer seulement si sûr
|
||||||
|
# "iconengines", # à garder pour les svg dans l'app
|
||||||
|
"tls",
|
||||||
|
"printsupport",
|
||||||
|
#"opengl",
|
||||||
|
"qml",
|
||||||
|
"quick",
|
||||||
|
"webengine",
|
||||||
|
]):
|
||||||
|
continue
|
||||||
|
|
||||||
|
new_binaries.append(item)
|
||||||
|
|
||||||
|
a.binaries = new_binaries
|
||||||
|
|
||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
# 🔥 Suppression traductions Qt (gain taille)
|
# 🔥 Suppression traductions Qt (gain taille)
|
||||||
@@ -265,7 +284,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,
|
strip=False, # pas de strip sous windows
|
||||||
|
|
||||||
# 🔥 Compression max
|
# 🔥 Compression max
|
||||||
upx=True,
|
upx=True,
|
||||||
@@ -279,6 +298,8 @@ exe = EXE(
|
|||||||
"python3*.dll",
|
"python3*.dll",
|
||||||
"vcruntime*.dll",
|
"vcruntime*.dll",
|
||||||
"msvcp*.dll",
|
"msvcp*.dll",
|
||||||
|
"vcruntime140.dll",
|
||||||
|
"msvcp140.dll"
|
||||||
],
|
],
|
||||||
runtime_tmpdir=None,
|
runtime_tmpdir=None,
|
||||||
console=False,
|
console=False,
|
||||||
|
|||||||
Reference in New Issue
Block a user