diff --git a/.gitea/scripts/upload_installer_to_ks3.py b/.gitea/scripts/upload_installer_to_ks3.py index f136d0e..b08d0a6 100644 --- a/.gitea/scripts/upload_installer_to_ks3.py +++ b/.gitea/scripts/upload_installer_to_ks3.py @@ -83,18 +83,18 @@ def upload_installer(connection, installer_path): key = bucket.new_key(ks3_key) - with open(installer_path, 'rb') as f: - key.set_contents_from_file( - f, - headers={ - 'Content-Type': 'application/octet-stream', - 'Content-Disposition': f'attachment; filename="{installer_path.name}"', - 'Cache-Control': 'public, max-age=3600', - 'x-kss-storage-class': 'STANDARD' - } - ) - - key.set_acl('public-read') + # Upload file with public read permission (reference: bulk_upload_static_to_ks3.py) + key.set_contents_from_filename( + str(installer_path), + headers={ + 'Content-Type': 'application/octet-stream', + 'Content-Disposition': f'attachment; filename="{installer_path.name}"', + 'Cache-Control': 'public, max-age=3600', + 'x-kss-storage-class': 'STANDARD', + 'x-kss-acl': 'public-read' # Set public read permission in headers + }, + policy='public-read' # Set ACL policy + ) # Generate download URL (using HTTPS) protocol = 'https' if KS3_IS_SECURE else 'http' diff --git a/config.py b/config.py index 1ff772c..29daa7c 100644 --- a/config.py +++ b/config.py @@ -42,7 +42,7 @@ VERSION = "1.0" WINDOW_TITLE = "AI回复连接入口-V1.0" # 应用版本号(用于版本检查) -APP_VERSION = "1.5.10" +APP_VERSION = "1.5.11" # 平台特定配置 PLATFORMS = { diff --git a/version_history.json b/version_history.json index 1250955..c39e3ed 100644 --- a/version_history.json +++ b/version_history.json @@ -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", "update_type": "patch",