Download Latest Version SwitchHosts-5.0.1-windows-x86-setup.exe (3.0 MB)
Email in envelope

Get an email when there's a new version of SwitchHosts

Home / v5.0.1
Name Modified Size InfoDownloads / Week
Parent folder
latest.json 2026-06-18 9.1 kB
SwitchHosts-5.0.1-linux-x86_64.rpm.sig 2026-06-18 428 Bytes
SwitchHosts-5.0.1-linux-arm64.deb.sig 2026-06-18 424 Bytes
SwitchHosts-5.0.1-linux-amd64.deb.sig 2026-06-18 424 Bytes
SwitchHosts-5.0.1-linux-aarch64.rpm.sig 2026-06-18 428 Bytes
SwitchHosts_x64.app.tar.gz.sig 2026-06-18 416 Bytes
SwitchHosts_universal.app.tar.gz.sig 2026-06-18 424 Bytes
SwitchHosts_aarch64.app.tar.gz.sig 2026-06-18 420 Bytes
SwitchHosts_5.0.1_x86-setup.nsis.zip.sig 2026-06-18 428 Bytes
SwitchHosts_5.0.1_x64-setup.nsis.zip.sig 2026-06-18 428 Bytes
SwitchHosts_5.0.1_arm64-setup.nsis.zip.sig 2026-06-18 432 Bytes
SwitchHosts_5.0.1_amd64.AppImage.tar.gz.sig 2026-06-18 432 Bytes
SwitchHosts_5.0.1_aarch64.AppImage.tar.gz.sig 2026-06-18 436 Bytes
SwitchHosts-5.0.1-mac-universal.dmg 2026-06-18 8.3 MB
SwitchHosts_universal.app.tar.gz 2026-06-18 8.1 MB
SwitchHosts_5.0.1_x64-setup.nsis.zip 2026-06-18 3.1 MB
SwitchHosts-5.0.1-windows-x64-setup.exe 2026-06-18 3.1 MB
SwitchHosts_5.0.1_x86-setup.nsis.zip 2026-06-18 2.9 MB
SwitchHosts-5.0.1-windows-x86-setup.exe 2026-06-18 3.0 MB
SwitchHosts_5.0.1_arm64-setup.nsis.zip 2026-06-18 2.9 MB
SwitchHosts-5.0.1-windows-arm64-setup.exe 2026-06-18 2.9 MB
SwitchHosts_5.0.1_aarch64.AppImage.tar.gz 2026-06-18 76.6 MB
SwitchHosts-5.0.1-linux-aarch64.AppImage 2026-06-18 77.2 MB
SwitchHosts-5.0.1-linux-aarch64.rpm 2026-06-18 4.4 MB
SwitchHosts-5.0.1-linux-arm64.deb 2026-06-18 4.4 MB
SwitchHosts-5.0.1-mac-aarch64.dmg 2026-06-18 4.2 MB
SwitchHosts-5.0.1-mac-x64.dmg 2026-06-18 4.5 MB
SwitchHosts_aarch64.app.tar.gz 2026-06-18 4.0 MB
SwitchHosts_5.0.1_amd64.AppImage.tar.gz 2026-06-18 78.5 MB
SwitchHosts-5.0.1-linux-amd64.AppImage 2026-06-18 79.1 MB
SwitchHosts-5.0.1-linux-x86_64.rpm 2026-06-18 4.5 MB
SwitchHosts-5.0.1-linux-amd64.deb 2026-06-18 4.5 MB
SwitchHosts_x64.app.tar.gz 2026-06-18 4.3 MB
README.md 2026-06-18 4.6 kB
SwitchHosts v5.0.1 source code.tar.gz 2026-06-18 1.3 MB
SwitchHosts v5.0.1 source code.zip 2026-06-18 1.5 MB
Totals: 36 Items   383.6 MB 21

New Features

  • Added “Lightweight Mode”: closing the main window can now release WebView memory, useful for users who want lower background resource usage.
  • Restored custom data storage location: choose a data directory, migrate existing data, and reset back to the default location.
  • Added a privileged background Helper on macOS to reduce repeated admin password prompts when writing to /etc/hosts. (If the Helper has issues, you can open macOS “Login Items” settings directly to approve or re-enable it.)
  • Added a “Quit app when closing the main window” option, better matching Windows users’ expectations.

Experience Improvements

  • Optimized tray window creation and destruction to reduce resource usage while running in the background.
  • Long update changelogs are now scrollable instead of being truncated.
  • Added a title to the Import URL dialog; modal titles are now bold globally for better readability.
  • Added a default path tooltip to the data directory recovery dialog to help avoid accidental actions.
  • Reordered items in General settings and improved multilingual copy.

Bug Fixes

  • Fixed an issue where the Windows/Linux title-bar close button did not correctly trigger Lightweight Mode memory release.
  • Fixed an issue where the tray mini window could close immediately after opening on Windows/Linux.
  • Fixed an issue where the main window could still appear on macOS login even when “Hide at launch” was enabled.
  • Strengthened the recovery flow for custom data directories when they are damaged, missing, or referenced by an invalid pointer.
  • Fixed a brief flash of default data that could appear during data directory recovery.
  • Fixed a release workflow race condition where multiple build jobs could create the draft Release concurrently.

Dependencies and Internal Improvements

  • Updated multiple frontend, backend, and Rust dependencies, including Electron, Vite, Hono, Axios, Lodash, React, Mantine, Vitest, Sass, and more.
  • Updated security-related indirect dependencies, including picomatch, @xmldom/xmldom, follow-redirects, rustls-webpki, tar, and more.
  • Added test coverage for window lifecycle, Lightweight Mode, tray behavior, data directory recovery, and configuration update failure paths.
  • Improved macOS Helper diagnostic logging, making background component issues easier to inspect through system logs.

新增功能

  • 新增“轻量模式”:关闭主窗口时可释放 WebView 内存,适合希望降低后台占用的用户。
  • 恢复自定义数据存储位置:可选择数据目录、迁移现有数据,并支持重置回默认位置。
  • macOS 新增后台提权 Helper:写入 /etc/hosts 时减少反复弹出管理员密码的情况。(Helper 异常时可直接打开 macOS “登录项”设置,便于批准或重新启用后台组件。)
  • 新增“关闭主窗口时退出应用”选项,兼顾 Windows 用户的使用习惯。

改进体验

  • 优化托盘窗口创建与销毁逻辑,减少隐藏运行时的资源占用。
  • 长更新日志弹窗现在可滚动查看,不再被截断。
  • 导入 URL 弹窗新增标题;全局弹窗标题加粗,更易识别。
  • 数据目录恢复弹窗增加默认路径提示,避免误操作。
  • 调整“通用设置”项目顺序,并完善多语言文案。

修复问题

  • 修复 Windows/Linux 标题栏关闭按钮未正确触发轻量模式释放内存的问题。
  • 修复托盘迷你窗口在 Windows/Linux 上刚打开就关闭的问题。
  • 修复 macOS 登录启动时,在“启动时隐藏”开启后主窗口仍可能显示的问题。
  • 加强自定义数据目录损坏、丢失、无效指针等场景的恢复流程。
  • 修复恢复数据目录时可能短暂显示默认数据的问题。
  • 修复发布流程中多个构建任务并发创建草稿 Release 的竞态问题。

依赖与内部改进

  • 更新多项前端、后端与 Rust 依赖,包括 Electron、Vite、Hono、Axios、Lodash、React、Mantine、Vitest、Sass 等。
  • 更新安全相关间接依赖,包括 picomatch@xmldom/xmldomfollow-redirectsrustls-webpkitar 等。
  • 增加窗口生命周期、轻量模式、托盘行为、数据目录恢复、配置更新失败路径等测试覆盖。
  • 改进 macOS Helper 诊断日志,现在可通过系统日志排查后台组件问题。

Full Changelog: https://github.com/oldj/SwitchHosts/compare/v5.0.0...v5.0.1

Source: README.md, updated 2026-06-18