调整打包文件

This commit is contained in:
xinzhu.yin
2026-04-17 11:15:39 +08:00
parent c157e774e5
commit 19e12d4aeb
7 changed files with 152 additions and 196 deletions

View File

@@ -74,8 +74,19 @@ a = Analysis(
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=['PyQt5'],
excludes=[
'PyQt5',
'PyQt6',
'PySide2',
'PySide6',
'cv2',
'imageio',
'imageio_ffmpeg',
'IPython',
'jedi',
],
noarchive=False,
# numpy 在运行时依赖部分 docstringoptimize=2 会移除 docstring 导致启动报错。
optimize=0,
)
pyz = PYZ(a.pure)
@@ -89,7 +100,8 @@ exe = EXE(
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
# 关闭 UPX通常可减少启动时解压与杀软扫描开销提升冷启动体感。
upx=False,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
@@ -105,7 +117,7 @@ coll = COLLECT(
a.binaries,
a.datas,
strip=False,
upx=True,
upx=False,
upx_exclude=[],
name='pqAutomationApp',
)