diff --git a/.gitea/scripts/upload_installer_to_ks3.py b/.gitea/scripts/upload_installer_to_ks3.py index ac9c870..f136d0e 100644 --- a/.gitea/scripts/upload_installer_to_ks3.py +++ b/.gitea/scripts/upload_installer_to_ks3.py @@ -9,7 +9,12 @@ import os import sys import logging from pathlib import Path -from ks3.connection import Connection + +try: + from ks3.connection import Connection +except ImportError: + print("ERROR: ks3sdk not installed. Please run: pip install ks3sdk") + sys.exit(1) # Configure logging logging.basicConfig( diff --git a/.gitea/workflows/gui-version-release.yml b/.gitea/workflows/gui-version-release.yml index f8de82e..4a90398 100644 --- a/.gitea/workflows/gui-version-release.yml +++ b/.gitea/workflows/gui-version-release.yml @@ -346,7 +346,9 @@ jobs: Write-Host "Step 4.8: Upload installer to KS3"; Write-Host "=========================================="; - pip install ks3 2>$null; + # Install KS3 SDK + Write-Host "Installing KS3 SDK..."; + python -m pip install ks3sdk --quiet; python .gitea/scripts/upload_installer_to_ks3.py; diff --git a/config.py b/config.py index 17c731d..1ff772c 100644 --- a/config.py +++ b/config.py @@ -42,7 +42,7 @@ VERSION = "1.0" WINDOW_TITLE = "AI回复连接入口-V1.0" # 应用版本号(用于版本检查) -APP_VERSION = "1.5.9" +APP_VERSION = "1.5.10" # 平台特定配置 PLATFORMS = { diff --git a/main.py b/main.py index 418eb61..f2fe9ae 100644 --- a/main.py +++ b/main.py @@ -13,10 +13,10 @@ from windows_taskbar_fix import setup_windows_taskbar_icon import os # ===================== 文件日志系统 - 生产环境启用 ===================== # 重定向所有输出到文件,确保有日志记录 -from exe_file_logger import setup_file_logging, log_to_file +# from exe_file_logger import setup_file_logging, log_to_file # 生产环境禁用 -setup_file_logging() # 生产环境启用自动日志功能 -print("文件日志系统已在main.py中初始化") +# setup_file_logging() # 生产环境禁用 # 生产环境启用自动日志功能 +# print("文件日志系统已在main.py中初始化") # 生产环境禁用 # 新增: 版本更新信号类(用于线程安全的 GUI 通知) diff --git a/version_history.json b/version_history.json index 934b5e4..1250955 100644 --- a/version_history.json +++ b/version_history.json @@ -1,4 +1,20 @@ [ + { + "version": "1.5.10", + "update_type": "patch", + "content": "[patch] 修正Pillow依赖冲突问题", + "author": "Gitea Actions Bot", + "commit_hash": "99446eca748e93c289012a8465a94e4ae7ca8961", + "commit_short_hash": "99446eca", + "branch": "develop", + "release_time": "2025-10-11 16:34:25", + "download_url": "https://ks3-cn-guangzhou.ksyuncs.com/shuidrop-chat-server/installers/ShuiDi_AI_Assistant_Setup_v1.5.10.exe", + "stats": { + "files_changed": 3, + "lines_added": 30, + "lines_deleted": 14 + } + }, { "version": "1.5.9", "update_type": "patch",