fix(tauri): 加速自动更新下载#138
Conversation
There was a problem hiding this comment.
Sorry @Cooper-X-Oak, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
175a0ce to
45f958f
Compare
|
Update after mirror review: switched the default mirror from Fresh no-proxy Windows measurement with This remains much better than direct GitHub in the same environment, where the 4.78 MB installer timed out twice after 90s with partial downloads. The mirror is still configurable via |
45f958f to
27b54db
Compare
27b54db to
e34b3fe
Compare
There was a problem hiding this comment.
Sorry @Cooper-X-Oak, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
摘要
Fixes #137。
这个 PR 解决的单一目标是:把自动更新主下载路径从 GitHub Releases 直连改成
fastgit.cc优先,GitHub 原站只保留 fallback,并去掉应用层手动探测本地代理端口的逻辑。修复 / 新增 / 改进
AutoUpdate.tsx:删除本地代理端口探测,只保留正常的 updatercheck({ timeout })。tauri.conf.json:配置fastgit.ccmirror endpoint 在前,GitHub Releases endpoint 在后。write-updater-manifest.mjs/ release workflow:生成 mirror manifest,并让 mirror installer URL 使用fastgit.cc前缀。docs/auto-update-download-acceleration.md:改成“原来怎样、现在怎样、验证结果”的说明方式。兼容
latest-<target>-<arch>-mirror.json,原标准 manifest 仍保留。测试计划
./scripts/windows-preflight.ps1 -Toolchain msvc(在 MSVC / VsDevCmd 环境下)windows-preflight.ps1、windows-build-gnu.ps1、windows-runtime-smoke.ps1).github/workflows/ci.yml同款检查验证通过。npm run buildcargo check --manifest-path src-tauri/Cargo.toml(在 MSVC / VsDevCmd 环境下)scripts/write-updater-manifest.mjsfastgit.ccmirror manifest。