实现更新版本管理

This commit is contained in:
Gitea Actions Bot
2025-10-11 15:46:39 +08:00
parent 95534f5304
commit 8ecec1edbe
6 changed files with 264 additions and 167 deletions

View File

@@ -398,13 +398,10 @@ class DatabaseVersionManager:
f"+{stats['lines_added']}/-{stats['lines_deleted']}")
# 6. 创建版本记录
# 生成下载地址(标准格式:指向实际安装包文件
# 生成下载地址(KS3对象存储 - 广州节点
installer_filename = f"ShuiDi_AI_Assistant_Setup_v{next_version}.exe"
download_url = f"https://shuidrop.com/download/gui/{installer_filename}"
# 完整示例: https://shuidrop.com/download/gui/ShuiDi_AI_Assistant_Setup_v1.4.12.exe
# 临时测试可以改为:
# download_url = "https://www.baidu.com"
download_url = f"https://ks3-cn-guangzhou.ksyuncs.com/shuidrop-chat-server/installers/{installer_filename}"
# 完整示例: https://ks3-cn-guangzhou.ksyuncs.com/shuidrop-chat-server/installers/ShuiDi_AI_Assistant_Setup_v1.5.0.exe
version_record = {
'version': next_version,