Skip to content

feat: schedule automatic version updates#5197

Open
eyaeya wants to merge 9 commits into
vernesong:devfrom
eyaeya:codex/openclash-auto-version-update
Open

feat: schedule automatic version updates#5197
eyaeya wants to merge 9 commits into
vernesong:devfrom
eyaeya:codex/openclash-auto-version-update

Conversation

@eyaeya

@eyaeya eyaeya commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

变更

  • 在“版本更新”页新增自动版本更新开关与每周/每日定时设置,默认关闭。
  • 新增 /usr/share/openclash/openclash_auto_update.sh,按 raw、fastly、testingcf、cdn 顺序尝试,并在每个源上先直连后代理。
  • 自动更新复用现有 one-key 更新链路,覆盖 OpenClash 客户端和内核;更新脚本在自动模式下返回可靠退出码,避免失败被误判成功。
  • OIX 核心 Release asset 对 jsDelivr 输入回退 GitHub Release 原始 URL;非 jsDelivr 自定义前缀仍保留。
  • UI 翻译沿用 LuCI 英文 msgid:zh-cn 显示中文,es 显示西班牙语。

验证

  • bash tests/openclash_auto_update_test.sh
  • bash tests/openclash_oix_url_test.sh
  • bash tests/openclash_auto_update_config_test.sh
  • bash -n luci-app-openclash/root/usr/share/openclash/*.sh
  • sh -n luci-app-openclash/root/etc/init.d/openclash
  • git diff --check bc4d118..HEAD

说明

  • 本机没有 lua/luac,因此未运行 Lua parser 级校验;settings.lua 已通过 diff/审查覆盖。
  • OIX 文件是 GitHub Release assets,jsDelivr /gh/... 不能服务这些文件,因此对 jsDelivr 输入使用 raw Release URL 回退。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant