feat: 添加网格监控并修复程序卡死与打包启动

This commit is contained in:
王鹏
2026-10-30 16:26:05 +08:00
parent b1eea9f5b4
commit b7e0894f4b
24 changed files with 2486 additions and 333 deletions

53
GridTrading.spec Normal file
View File

@@ -0,0 +1,53 @@
# -*- mode: python ; coding: utf-8 -*-
a = Analysis(
['src\\grid_trading\\app.py'],
pathex=['src'],
binaries=[],
datas=[('assets\\app_icon.ico', 'assets')],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
# Qt 6 on Windows uses the ICU compatibility DLLs provided by the operating
# system. The Codex runtime also puts Poppler's private ICU 78 directory on
# PATH, which can make PyInstaller collect those incompatible DLLs by name.
# If bundled, they shadow Windows' ICU DLLs and PySide6.QtCore fails to load
# with ERROR_PROC_NOT_FOUND during startup.
_excluded_runtime_dlls = {"icuuc.dll", "icudt78.dll"}
a.binaries = [
entry
for entry in a.binaries
if entry[0].replace("\\", "/").rsplit("/", 1)[-1].lower()
not in _excluded_runtime_dlls
]
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='GridTrading',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
icon=['assets\\app_icon.ico'],
runtime_tmpdir=None,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)