From f6109b058b715fc4f3d78389a57fc85043e7a6e6 Mon Sep 17 00:00:00 2001 From: kdletters Date: Mon, 31 Aug 2026 15:00:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=20AGC=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=88=B0=20agc-dev=20OSS=20=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=AE=A2=E6=88=B7=E7=AB=AF=E6=B8=85=E5=8D=95=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=9C=B0=E5=9D=80=20=E5=90=8C=E6=AD=A5=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E7=99=BD=E5=90=8D=E5=8D=95=E4=B8=8E=20CSP=20=E5=9F=9F?= =?UTF-8?q?=E5=90=8D=20=E4=BF=AE=E6=AD=A3=E6=9E=84=E5=BB=BA=E6=B8=85?= =?UTF-8?q?=E5=8D=95=E7=9A=84=20OSS=20=E4=B8=8B=E8=BD=BD=E5=89=8D=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ai-game-creator-shell/scripts/build-release.mjs | 2 +- apps/ai-game-creator-shell/src-tauri/capabilities/main.json | 2 +- apps/ai-game-creator-shell/src-tauri/src/main.rs | 2 +- apps/ai-game-creator-shell/src-tauri/tauri.conf.json | 4 ++-- apps/ai-game-creator-shell/src/services/appUpdate.ts | 2 +- .../【技术方案】AGC客户端更新检查与下载-2026-08-31.md | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/ai-game-creator-shell/scripts/build-release.mjs b/apps/ai-game-creator-shell/scripts/build-release.mjs index 0ac7d3a42..c11996f8c 100644 --- a/apps/ai-game-creator-shell/scripts/build-release.mjs +++ b/apps/ai-game-creator-shell/scripts/build-release.mjs @@ -16,7 +16,7 @@ const packageJson = JSON.parse( fs.readFileSync(path.join(appRoot, 'package.json'), 'utf8'), ); const defaultOssBaseUrl = - 'https://genarrative-assets.oss-cn-shanghai.aliyuncs.com/agc'; + 'https://agc-dev.oss-rg-china-mainland.aliyuncs.com/agc'; function runTauriBuild(args) { const result = spawnSync( diff --git a/apps/ai-game-creator-shell/src-tauri/capabilities/main.json b/apps/ai-game-creator-shell/src-tauri/capabilities/main.json index f5b1e6db6..d4e2ade6a 100644 --- a/apps/ai-game-creator-shell/src-tauri/capabilities/main.json +++ b/apps/ai-game-creator-shell/src-tauri/capabilities/main.json @@ -14,7 +14,7 @@ "allow": [ { "url": "https://dev.genarrative.world/api/*" }, { "url": "https://www.genarrative.world/api/*" }, - { "url": "https://genarrative-assets.oss-cn-shanghai.aliyuncs.com/*" }, + { "url": "https://agc-dev.oss-rg-china-mainland.aliyuncs.com/*" }, { "url": "https://*/api/*" }, { "url": "http://localhost:*/*" }, { "url": "http://127.0.0.1:*/*" } diff --git a/apps/ai-game-creator-shell/src-tauri/src/main.rs b/apps/ai-game-creator-shell/src-tauri/src/main.rs index 5c0bd4a55..71dfdeb76 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/main.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/main.rs @@ -43,7 +43,7 @@ use tauri::{Emitter, Manager}; use tauri_plugin_dialog::DialogExt; use tauri_plugin_opener::OpenerExt; -const AGC_UPDATE_OSS_HOST: &str = "genarrative-assets.oss-cn-shanghai.aliyuncs.com"; +const AGC_UPDATE_OSS_HOST: &str = "agc-dev.oss-rg-china-mainland.aliyuncs.com"; const AGC_UPDATE_MAX_DOWNLOAD_BYTES: u64 = 512 * 1024 * 1024; #[tauri::command] diff --git a/apps/ai-game-creator-shell/src-tauri/tauri.conf.json b/apps/ai-game-creator-shell/src-tauri/tauri.conf.json index 8a5e57edc..1eb8e0319 100644 --- a/apps/ai-game-creator-shell/src-tauri/tauri.conf.json +++ b/apps/ai-game-creator-shell/src-tauri/tauri.conf.json @@ -24,8 +24,8 @@ } ], "security": { - "csp": "default-src 'self' customprotocol: asset:; img-src 'self' asset: data: blob:; media-src 'self' asset: data: blob:; connect-src 'self' https://genarrative-assets.oss-cn-shanghai.aliyuncs.com http://127.0.0.1:* ws://127.0.0.1:*; script-src 'self'; style-src 'self' 'unsafe-inline'; frame-src 'self' http://127.0.0.1:*", - "devCsp": "default-src 'self' customprotocol: asset: http://127.0.0.1:*; img-src 'self' asset: http://127.0.0.1:* data: blob:; media-src 'self' asset: http://127.0.0.1:* data: blob:; connect-src 'self' https://genarrative-assets.oss-cn-shanghai.aliyuncs.com http://127.0.0.1:* ws://127.0.0.1:*; script-src 'self'; style-src 'self' 'unsafe-inline'; frame-src 'self' http://127.0.0.1:*" + "csp": "default-src 'self' customprotocol: asset:; img-src 'self' asset: data: blob:; media-src 'self' asset: data: blob:; connect-src 'self' https://agc-dev.oss-rg-china-mainland.aliyuncs.com http://127.0.0.1:* ws://127.0.0.1:*; script-src 'self'; style-src 'self' 'unsafe-inline'; frame-src 'self' http://127.0.0.1:*", + "devCsp": "default-src 'self' customprotocol: asset: http://127.0.0.1:*; img-src 'self' asset: http://127.0.0.1:* data: blob:; media-src 'self' asset: http://127.0.0.1:* data: blob:; connect-src 'self' https://agc-dev.oss-rg-china-mainland.aliyuncs.com http://127.0.0.1:* ws://127.0.0.1:*; script-src 'self'; style-src 'self' 'unsafe-inline'; frame-src 'self' http://127.0.0.1:*" } }, "bundle": { diff --git a/apps/ai-game-creator-shell/src/services/appUpdate.ts b/apps/ai-game-creator-shell/src/services/appUpdate.ts index 442c03416..fe3ac0bbd 100644 --- a/apps/ai-game-creator-shell/src/services/appUpdate.ts +++ b/apps/ai-game-creator-shell/src/services/appUpdate.ts @@ -7,7 +7,7 @@ import { resolveTauriInvoke } from '../app/tauri'; /** OSS 上的 AGC 更新清单;发布时可覆盖为同一受信任 OSS 域名下的地址。 */ export const AGC_UPDATE_MANIFEST_URL = import.meta.env.VITE_AGC_UPDATE_MANIFEST_URL?.trim() || - 'https://genarrative-assets.oss-cn-shanghai.aliyuncs.com/agc/latest.json'; + 'https://agc-dev.oss-rg-china-mainland.aliyuncs.com/agc/latest.json'; export type AppUpdateManifest = { version: string; diff --git a/docs/technical/【技术方案】AGC客户端更新检查与下载-2026-08-31.md b/docs/technical/【技术方案】AGC客户端更新检查与下载-2026-08-31.md index 171a9e2fb..d936904a9 100644 --- a/docs/technical/【技术方案】AGC客户端更新检查与下载-2026-08-31.md +++ b/docs/technical/【技术方案】AGC客户端更新检查与下载-2026-08-31.md @@ -3,7 +3,7 @@ ## 交付范围 AGC 每次启动时由根窗口检查一次公开 OSS 更新清单。清单默认位于 -`https://genarrative-assets.oss-cn-shanghai.aliyuncs.com/agc/latest.json`,构建时可用 +`https://agc-dev.oss-rg-china-mainland.aliyuncs.com/agc/latest.json`,构建时可用 `VITE_AGC_UPDATE_MANIFEST_URL` 覆盖为同一受信任 OSS 域名下的 HTTPS 地址。客户端版本取 `apps/ai-game-creator-shell/package.json`,通过 `version` 与清单版本比较;只有远端版本更高时显示更新提示。 @@ -12,7 +12,7 @@ AGC 每次启动时由根窗口检查一次公开 OSS 更新清单。清单默 ```json { "version": "0.1.13", - "downloadUrl": "https://genarrative-assets.oss-cn-shanghai.aliyuncs.com/agc/0.1.13/Genarrative-AI-Game-Creator.exe", + "downloadUrl": "https://agc-dev.oss-rg-china-mainland.aliyuncs.com/agc/0.1.13/Genarrative-AI-Game-Creator.exe", "sha256": "<64位十六进制摘要>", "size": 123456789, "releaseNotes": "修复与改进"