[patch] 修正ks3问题

This commit is contained in:
Gitea Actions Bot
2025-10-11 16:54:14 +08:00
parent bcb76c0a99
commit 5c73bbf8bc
3 changed files with 29 additions and 13 deletions

View File

@@ -83,18 +83,18 @@ def upload_installer(connection, installer_path):
key = bucket.new_key(ks3_key) key = bucket.new_key(ks3_key)
with open(installer_path, 'rb') as f: # Upload file with public read permission (reference: bulk_upload_static_to_ks3.py)
key.set_contents_from_file( key.set_contents_from_filename(
f, str(installer_path),
headers={ headers={
'Content-Type': 'application/octet-stream', 'Content-Type': 'application/octet-stream',
'Content-Disposition': f'attachment; filename="{installer_path.name}"', 'Content-Disposition': f'attachment; filename="{installer_path.name}"',
'Cache-Control': 'public, max-age=3600', 'Cache-Control': 'public, max-age=3600',
'x-kss-storage-class': 'STANDARD' 'x-kss-storage-class': 'STANDARD',
} 'x-kss-acl': 'public-read' # Set public read permission in headers
) },
policy='public-read' # Set ACL policy
key.set_acl('public-read') )
# Generate download URL (using HTTPS) # Generate download URL (using HTTPS)
protocol = 'https' if KS3_IS_SECURE else 'http' protocol = 'https' if KS3_IS_SECURE else 'http'

View File

@@ -42,7 +42,7 @@ VERSION = "1.0"
WINDOW_TITLE = "AI回复连接入口-V1.0" WINDOW_TITLE = "AI回复连接入口-V1.0"
# 应用版本号(用于版本检查) # 应用版本号(用于版本检查)
APP_VERSION = "1.5.10" APP_VERSION = "1.5.11"
# 平台特定配置 # 平台特定配置
PLATFORMS = { PLATFORMS = {

View File

@@ -1,4 +1,20 @@
[ [
{
"version": "1.5.11",
"update_type": "patch",
"content": "[patch] 修正ks3包名问题",
"author": "Gitea Actions Bot",
"commit_hash": "bcb76c0a99d8ec689610a12d2942bd486e381358",
"commit_short_hash": "bcb76c0a",
"branch": "develop",
"release_time": "2025-10-11 16:44:27",
"download_url": "https://ks3-cn-guangzhou.ksyuncs.com/shuidrop-chat-server/installers/ShuiDi_AI_Assistant_Setup_v1.5.11.exe",
"stats": {
"files_changed": 5,
"lines_added": 29,
"lines_deleted": 6
}
},
{ {
"version": "1.5.10", "version": "1.5.10",
"update_type": "patch", "update_type": "patch",