Files
clash-verge-rev/Changelog.md
T
Tunglies 4038a76218 feat(linux): reinstall an existing Service during package upgrades
The deb and rpm packages never refreshed an installed Service, and the
previous package's prerm/%preun uninstalls it unconditionally. When the
Service unit existed before the upgrade, the new postinst/%post now
reinstalls it with its group and restores disabled, enabled-runtime,
masked-runtime and stopped states. First installs and explicit removals
never add a Service.

rpm runs the new %post before the old %preun. %post records the
transaction process (pid and start time) in /run, and
/usr/bin/clash-verge-service-uninstall becomes a wrapper that skips only
that %preun call and otherwise runs the real uninstaller, now under
/usr/lib/clash-verge-rev. deb has no such ordering: an upgrade from a
released version still loses the Service, and later deb upgrades reinstall
it in place only once the prerm upgrade guard from #8240 ships.

The scripts exit 0, because a failing postinst or %post cannot restore the
Service. On failure they write /run/clash-verge-service-upgrade instead;
package script output never reaches the GUI. At startup the app offers a
reinstall if the Service is not ready and warns if its previous state was
not restored. Both notices replay when a window subscribes, and the marker
is acknowledged only after both are taken. In-app updates stop a
Service-run core and hold the core lifecycle until the package manager
exits, including after the 30-second startup timeout.

Refs #8515
2026-11-10 07:54:05 +08:00

2.6 KiB

v2.6.0

🐞 修复问题
  • 修复检测更新后又发布新版时,应用内更新失败
  • 修复订阅响应过大导致内存占用过高,限制单次下载为 4 MiB
  • 修复全局模式默认停在 DIRECT 或 REJECT 导致流量未经代理,现自动切换到第一个策略组
  • 修复订阅中未加引号的 REALITY short-id(如 1234e123)被误读为数字,导致订阅无法启用

🍎 macOS

  • 修复 macOS TUN 模式下原有 DNS 被清除、关闭后 DNS 未恢复及联网后设置未生效
  • 修复 macOS 断网时误报代理已回退直连,恢复联网后自动重试系统代理
✨ 新增功能
🚀 优化改进
  • 优化连接、规则和日志筛选:切换页面后保留过滤条件
  • 优化全局模式代理列表:仅显示 GLOBAL 节点,选中其中的策略组时才显示该组

🍎 macOS

  • 优化 macOS TUN 模式的系统 DNS,增加阿里和 Cloudflare 地址

🐧 Linux

  • 优化 Linux 升级安装时自动重装已安装的服务并保留启停设置,重装失败时提示