1. 修改依赖库文件 2. 修改clibs.py文件以适应自动化构建 3. 重命名版本文件并在aio.py中适配

This commit is contained in:
gitea 2025-02-26 15:12:58 +08:00
parent 9766c2f620
commit dafb1779b6
4 changed files with 4 additions and 3 deletions

View File

@ -8,3 +8,4 @@ paramiko==3.5.0
pdfplumber==0.11.5
Pillow==11.1.0
pymodbus==3.8.3
pyinstaller==6.12.0

View File

@ -133,7 +133,7 @@ class App:
self.popupmenu_output.add_command(label="剪切", accelerator="Ctrl+X", font=self.f_treeview, command=lambda: self.__cut(self.text_output))
self.popupmenu_output.add_command(label="粘贴", accelerator="Ctrl+V", font=self.f_treeview, command=lambda: self.__paste(self.text_output))
# ========================================================================
with open(f"{clibs.PREFIX}/files/version/vers", mode="r", encoding="utf-8") as f:
with open(f"{clibs.PREFIX}/files/version/version", mode="r", encoding="utf-8") as f:
local_vers = f.read().strip()
_version, _update = local_vers.split("@")
_text = f" v{_version} Update@{_update}"

View File

@ -66,8 +66,8 @@ def insert_logdb(_level, _module, _content):
cursor.execute("insert into logs (level, module, content) values (?, ?, ?)", data)
# PREFIX = 'assets' # for pyinstaller packaging
PREFIX = '../assets' # for source code testing and debug
PREFIX = "assets" # for pyinstaller packaging
# PREFIX = "../assets" # for source code testing and debug
log_path = f"{PREFIX}/logs"
levels = ["DEBUG", "INFO", "WARNING", "ERROR"]
db_state = "readwrite"