[patch] 修正ks3问题且优化pillow依赖安装时间

This commit is contained in:
Gitea Actions Bot
2025-10-11 17:09:09 +08:00
parent 5c73bbf8bc
commit d8154025ea
6 changed files with 52 additions and 20 deletions

View File

@@ -398,10 +398,10 @@ class DatabaseVersionManager:
f"+{stats['lines_added']}/-{stats['lines_deleted']}")
# 6. 创建版本记录
# 生成下载地址KS3对象存储 - 广州节点)
# 生成下载地址KS3对象存储 - 广州节点,使用三级域名格式
installer_filename = f"ShuiDi_AI_Assistant_Setup_v{next_version}.exe"
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
download_url = f"https://shuidrop-chat-server.ks3-cn-guangzhou.ksyuncs.com/installers/{installer_filename}"
# 完整示例: https://shuidrop-chat-server.ks3-cn-guangzhou.ksyuncs.com/installers/ShuiDi_AI_Assistant_Setup_v1.5.0.exe
version_record = {
'version': next_version,

View File

@@ -96,9 +96,10 @@ def upload_installer(connection, installer_path):
policy='public-read' # Set ACL policy
)
# Generate download URL (using HTTPS)
# Generate download URL (using KS3 third-level domain format)
# Format: https://{bucket}.{endpoint}/{key}
protocol = 'https' if KS3_IS_SECURE else 'http'
download_url = f"{protocol}://{KS3_ENDPOINT}/{KS3_BUCKET}/{ks3_key}"
download_url = f"{protocol}://{KS3_BUCKET}.{KS3_ENDPOINT}/{ks3_key}"
logger.info(f"Upload successful!")
logger.info(f"Download URL: {download_url}")