release: DLD154Tool v1.0.0 — 版本显示+PyInstaller打包
This commit is contained in:
@@ -2,3 +2,5 @@ venv/
|
||||
__pycache__/
|
||||
*.pyc
|
||||
.DS_Store
|
||||
build/
|
||||
dist/
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
# -*- mode: python ; coding: utf-8 -*-
|
||||
# DLD154Tool PyInstaller spec — 单文件 Windows/Linux 打包
|
||||
|
||||
a = Analysis(
|
||||
['main.py'],
|
||||
pathex=[],
|
||||
binaries=[],
|
||||
datas=[],
|
||||
hiddenimports=[
|
||||
'PySide6.QtCore',
|
||||
'PySide6.QtGui',
|
||||
'PySide6.QtWidgets',
|
||||
'PySide6.QtSerialPort',
|
||||
'serial',
|
||||
],
|
||||
hookspath=[],
|
||||
hooksconfig={},
|
||||
runtime_hooks=[],
|
||||
excludes=[],
|
||||
noarchive=False,
|
||||
optimize=0,
|
||||
)
|
||||
|
||||
pyz = PYZ(a.pure)
|
||||
|
||||
exe = EXE(
|
||||
pyz,
|
||||
a.scripts,
|
||||
a.binaries,
|
||||
a.datas,
|
||||
[],
|
||||
name='DLD154Tool',
|
||||
debug=False,
|
||||
bootloader_ignore_signals=False,
|
||||
strip=False,
|
||||
upx=True,
|
||||
upx_exclude=[],
|
||||
runtime_tmpdir=None,
|
||||
console=False,
|
||||
disable_windowed_traceback=False,
|
||||
argv_emulation=False,
|
||||
target_arch=None,
|
||||
codesign_identity=None,
|
||||
entitlements_file=None,
|
||||
icon=None,
|
||||
)
|
||||
+6
-1
@@ -8,6 +8,8 @@ DLD154Tool — DLD154Pro 桌面串口调试工具
|
||||
|
||||
依赖: PySide6, pyserial
|
||||
"""
|
||||
|
||||
TOOL_VERSION = "1.0.0"
|
||||
import sys
|
||||
import struct
|
||||
import threading
|
||||
@@ -553,7 +555,7 @@ class LogTab(QWidget):
|
||||
class MainWindow(QMainWindow):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.setWindowTitle("DLD154Tool — DLD154Pro 串口调试工具")
|
||||
self.setWindowTitle(f"DLD154Tool v{TOOL_VERSION} — DLD154Pro 串口调试工具")
|
||||
self.setMinimumSize(800, 650)
|
||||
|
||||
self._sc = SerialClient()
|
||||
@@ -586,6 +588,9 @@ class MainWindow(QMainWindow):
|
||||
|
||||
self._log_tab.append("DLD154Tool 启动")
|
||||
|
||||
# 状态栏: 显示版本
|
||||
self.statusBar().showMessage(f"DLD154Tool v{TOOL_VERSION} | 就绪")
|
||||
|
||||
def _on_connect_changed(self, connected: bool):
|
||||
if connected:
|
||||
self._start_worker()
|
||||
|
||||
Reference in New Issue
Block a user