添加 AGC 客户端更新检查与下载能力 (#230)
实现 AGC 启动版本检测与 OSS 安装包下载。 - 每次客户端打开时从 OSS latest.json 检查新版本 - 新版本提示支持 releaseNotes,并通过 Tauri 命令下载到系统下载目录 - 下载地址限制受信任 OSS、HTTPS、大小与可选 SHA-256 校验 - 补充 Tauri capability/CSP、单测和发布文档 Closes #224 Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/230
This commit was merged in pull request #230.
This commit is contained in:
@@ -173,12 +173,14 @@ export function collectNpmWorkspaceErrors(rootDir) {
|
||||
`${manifestPath}: name must be ${WORKSPACE_NAMES[workspacePath]}, received ${String(manifest.name)}`,
|
||||
);
|
||||
}
|
||||
const expectedWorkspaceVersion =
|
||||
workspacePath === 'apps/ai-game-creator-shell' ? '0.1.12' : '0.1.0';
|
||||
if (manifest.version !== expectedWorkspaceVersion) {
|
||||
errors.push(
|
||||
`${manifestPath}: workspace version must be ${expectedWorkspaceVersion}`,
|
||||
);
|
||||
if (workspacePath === 'apps/ai-game-creator-shell') {
|
||||
if (!/^\d+\.\d+\.\d+$/u.test(manifest.version ?? '')) {
|
||||
errors.push(
|
||||
`${manifestPath}: workspace version must be a three-part semver`,
|
||||
);
|
||||
}
|
||||
} else if (manifest.version !== '0.1.0') {
|
||||
errors.push(`${manifestPath}: workspace version must be 0.1.0`);
|
||||
}
|
||||
|
||||
for (const nestedLockfile of findNestedLockfiles(rootDir, workspacePath)) {
|
||||
|
||||
Reference in New Issue
Block a user