调整打包文件
This commit is contained in:
@@ -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 在运行时依赖部分 docstring,optimize=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',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user