chore: 移除项目中所有 Gitea 痕迹,origin 仅作 git 同步远程

- settings_dialog:仓库链接 REPO_URL 与展示名改指 GitHub,
  更新检查文案改「检查 GitHub Releases 上的新版本」
- update/mod.rs、check.rs 注释与 README 去除 Gitea 提法
- 删除 docs/deep-analysis-2026-09-30.md:其发布流水线章节描述的
  Gitea 旧渠道已整体下线,报告失去现实参照(git 历史 5ad4536 可找回)
This commit is contained in:
2026-09-30 14:02:38 +08:00
parent f4315dce1e
commit f5cd0cdc4f
5 changed files with 6 additions and 643 deletions
+3 -3
View File
@@ -31,7 +31,7 @@ const MAX_MESSAGES_MIN: usize = 100;
const MAX_MESSAGES_MAX: usize = 100_000;
const SITE_URL: &str = "https://mqttx.app";
const REPO_URL: &str = "https://gitea.heavenlybook.cn/JoeAllen/mqttx";
const REPO_URL: &str = "https://github.com/LiJoeAllen/mqttx";
/// 更新检查/安装在设置对话框内的展示状态。
#[derive(Debug, Clone)]
@@ -171,7 +171,7 @@ impl SettingsDialog {
.xsmall()
.on_click(cx.listener(|this, _, window, cx| this.run_check(window, cx)))
.into_any_element(),
"检查 Gitea Release 上的新版本".into_any_element(),
"检查 GitHub Releases 上的新版本".into_any_element(),
false,
),
UpdateUi::Checking => row(
@@ -523,7 +523,7 @@ impl Render for SettingsDialog {
.on_click(|_, _, cx| cx.open_url(SITE_URL)),
).child(
Button::new("about-repo")
.label("gitea.heavenlybook.cn/JoeAllen/mqttx")
.label("github.com/LiJoeAllen/mqttx")
.ghost()
.xsmall()
.tooltip(REPO_URL)
+1 -1
View File
@@ -1,4 +1,4 @@
//! 更新检查:访问 Gitea Release API,比较版本并挑选本平台资产。
//! 更新检查:访问 GitHub Releases,比较版本并挑选本平台资产。
use super::*;
-2
View File
@@ -23,8 +23,6 @@ pub use install::{
/// - api.github.com 未认证配额为 60 次/小时/IP:共享出口 IP 打满时检查会失败,
/// 按「错误仅记录、不打扰用户」静默降级,下次成功检查自动追上;
/// 附件下载走 github.com CDN,不受 API 配额限制。
/// - Gitea(gitea.heavenlybook.cn)是 v1.0.0 之前的历史发布渠道,已弃用:
/// GitHub 侧发布历史自 v1.0.0 起独立开始,不再向 Gitea 镜像。
pub const RELEASES_API: &str = "https://api.github.com/repos/LiJoeAllen/mqttx/releases";
/// Releases 页面(github.com,非 API、无配额限制):api.github.com 被限流时
/// 兜底发现最新 tag —— 跟踪 `{RELEASES_PAGE}/latest` 的 302,从最终 URL 取 tag,