[patch] 修正ks3问题
This commit is contained in:
@@ -83,19 +83,19 @@ 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,
|
||||
# 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-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)
|
||||
protocol = 'https' if KS3_IS_SECURE else 'http'
|
||||
download_url = f"{protocol}://{KS3_ENDPOINT}/{KS3_BUCKET}/{ks3_key}"
|
||||
|
||||
@@ -42,7 +42,7 @@ VERSION = "1.0"
|
||||
WINDOW_TITLE = "AI回复连接入口-V1.0"
|
||||
|
||||
# 应用版本号(用于版本检查)
|
||||
APP_VERSION = "1.5.10"
|
||||
APP_VERSION = "1.5.11"
|
||||
|
||||
# 平台特定配置
|
||||
PLATFORMS = {
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user