Populært: Data opdateret 27. oktober 2026

Kategorier

Internet1.356
Kommunikation321
Lyd og video898
Grafik og design539
Kontor og produktivitet1.124
Udviklerværktøjer3.134
AI-værktøjer529
Sikkerhed og privatliv385
Systemværktøjer3.114
Spil523
Uddannelse og videnskab239
Netværk og IT284

Download SwitchHosts 5.0.0

An app for management and switching of the Hosts file.

Dette er en ældre version. Den nyeste version er 5.0.3. SwitchHosts 5.0.3 · Udgivet:

Installationsfiler 5.0.0

ArkitekturTypeOmfangFilstørrelseDownloadSHA256
64-bit EXE (NSIS) · en-US Aktuel bruger — github.com VirusTotal
64-bit EXE (NSIS) · en-US Alle brugere — github.com VirusTotal
32-bit EXE (NSIS) · en-US Aktuel bruger — github.com VirusTotal
32-bit EXE (NSIS) · en-US Alle brugere — github.com VirusTotal

Link og SHA256 stammer fra fællesskabets manifest i Windows Package Manager. Sammenlign hashen for den downloadede fil, før du kører den.

Udgivelsesnoter

Update List
- Core Architecture Migrated to Tauri 2: Migrated from an Electron main process to a Rust/Tauri backend, added the complete src-tauri implementation, and removed the old Electron main process code, packaging scripts, and electron-builder workflow.
- New v5 Data Structure: Data is now stored in separate layers: manifest.json, entries/, trashcan.json, internal/config.json, and internal/histories/. README backup instructions were updated accordingly.
- Compatible Migration, Import, and Export: Supports first-run migration from legacy PotDb data; manual import now supports v3, v4, and v5 backups; exports now use the v5 backup JSON format with timestamped filenames.
- System Hosts Writing Reworked: Switched to native system privilege flows: Security.framework on macOS, pkexec on Linux, and UAC self-elevation on Windows. The in-app sudo password input was removed.
- New/Reworked Auto Update System: Integrated Tauri updater, with background update checks, manual download/install, proxy support for update requests, and generated/published latest.json.
- Rebuilt CI and Release Pipeline: Added GitHub Actions CI and Release workflows. Releases now run the full test suite before publishing and support signed/validated builds for macOS universal/arm64/x64, Windows x64/x86/arm64, and Linux x64/arm64.
- Editor Upgraded to CodeMirror 6: Improved large-file performance, syntax highlighting, line numbers, read-only mode, history snapshot rendering, and cursor/display stability.
- Enhanced Remote Hosts Refresh: Added startup refresh support, response size limits, and CRLF/LF normalization.
- Improved System Tray Behavior: Fixed macOS focus handling, multi-monitor positioning, rounded corners, and interaction issues.
- Major Main UI Redesign: Added a left activity bar, Hosts/Trashcan view switching, resizable left and right panels, a right-side details panel, centered title bar, frameless window, and cross-platform window controls.
- Right Details Panel: Shows the current hosts type, rule count, remote URL, refresh interval, last refresh time, group contents, and folder selection mode; trashcan items can be restored or permanently deleted from the panel.
- Unified Trashcan Experience: Moved the trashcan entry to the left sidebar, with item count display, restore, permanent delete, clear, and details panel operations.
- Preferences Reworked: Split preferences into General, Commands, Proxy, and Advanced tabs. General and Advanced settings auto-save, while Commands and Proxy keep manual save status feedback.
- New Preference Options: Added system theme by default, launch at login, and refresh remote hosts on startup.
- Enhanced Proxy Support: Added socks5 proxy protocol support, and both remote hosts refresh and app updates can now use proxy settings.
- Local HTTP API Preserved and Migrated: Reimplemented the 50761 API with Rust/Axum, supporting /api/list and /api/toggle; when port binding fails, the setting is rolled back and the user is notified.
- Localization and Copy Updates: Organized and sorted locale keys, fixed language preference fallback display, localized menus and find window text, and updated multilingual README screenshots and v5 documentation.
- Stability Fixes: Fixed concurrent config writes, HTTP API startup failure state, invisible window after hiding the Dock icon, stuck hover state after drag, titlebar/tray switch synchronization, long title truncation, loading screen lockups, and more.
- Expanded Test Coverage: Added Playwright e2e tests, Rust tests, and frontend component/model unit tests covering preferences, import/export, remote hosts, local hosts, trashcan, title bar, tree operations, find/replace, and more.
- Toolchain Upgrades: Upgraded to Vite 8, TypeScript 6, Mantine 9, Vitest 4, and Tauri 2.11, and introduced ESLint 10 with naming convention rules.
- Development and Build Command Changes: Development now uses npm run tauri:dev; production builds use npm run tauri:build; build artifacts are now located under src-tauri/target/release/bundle/.
- Removed Legacy Electron Content: Removed src/main/*, the Electron updater, old upload/packaging scripts, old main-process tests, and vite.main.config.mts.
更新列表
- 核心架构迁移到 Tauri 2:从 Electron 主进程迁移为 Rust/Tauri 后端,新增完整 src-tauri,移除 Electron 主进程代码、旧打包脚本和 electron-builder 流程。
- 全新 v5 数据结构:数据改为 manifest.json、entries/、trashcan.json、internal/config.json、internal/histories/ 分层存储,并更新 README 备份说明。
- 兼容迁移与导入导出:支持首次启动从旧 PotDb 数据迁移;手动导入支持 v3、v4、v5 备份;导出改为 v5 backup JSON,并支持带时间戳的备份文件名。
- 系统 hosts 写入重做:改用系统原生提权流程,macOS 使用 Security.framework,Linux 使用 pkexec,Windows 使用 UAC 自提升;移除应用内 sudo 密码输入。
- 新增/重做自动更新体系:接入 Tauri updater,支持后台检查更新、手动下载/安装、代理更新请求,并生成/发布 latest.json。
- CI/发布流水线重建:新增 GitHub Actions CI 和 Release workflow,发布前跑完整测试,支持 macOS universal/arm64/x64、Windows x64/x86/arm64、Linux x64/arm64 多平台构建、签名与校验。
- 编辑器升级为 CodeMirror 6:改善大文件性能、语法高亮、行号、只读模式、历史快照展示和光标/显示稳定性。
- 远程 hosts 刷新增强:支持启动时刷新、内容大小限制和 CRLF/LF 规范化。
- 系统托盘能力增强:并修复 macOS 焦点、多屏位置、圆角和交互问题。
- 主界面大改版:新增左侧活动栏、Hosts/回收站视图切换、可拖拽左右面板、右侧详情面板、居中标题栏、无边框窗口与跨平台窗口按钮。
- 右侧详情面板:显示当前 hosts 类型、规则数量、远程 URL、刷新周期、上次刷新、组合内容、文件夹选择模式;回收站内可恢复或彻底删除。
- 回收站体验统一:回收站入口移动到左侧栏,支持数量提示、恢复、永久删除、清空和详情面板操作。
- 偏好设置重构:常规/命令/代理/高级分栏;常规和高级项自动保存;命令与代理保留手动保存状态反馈。
- 新增偏好项:跟随系统主题默认开启、开机启动、启动时刷新远程 hosts 等。
- 代理支持增强:代理协议新增 socks5,并让远程 hosts 刷新与应用更新都能走代理。
- 本地 HTTP API 保留并迁移:基于 Rust/Axum 重写 50761 端口 API,支持 /api/list 和 /api/toggle,并在端口绑定失败时回滚配置并提示用户。
- 多语言与文案更新:整理并排序语言 key,修复语言偏好回退显示,本地化菜单和查找窗口文案,更新 README 多语言截图与 v5 说明。
- 稳定性修复集中落地:修复配置并发写入、HTTP API 开启失败状态、Dock 隐藏后窗口不可见、拖拽后 hover 残留、标题栏/托盘开关同步、长标题截断、加载失败卡住等问题。
- 测试覆盖增加:新增 Playwright e2e、Rust 测试、前端组件/模型单测,覆盖偏好设置、导入导出、远程 hosts、本地 hosts、回收站、标题栏、树操作、查找替换等。
- 工程栈升级:升级到 Vite 8、TypeScript 6、Mantine 9、Vitest 4、Tauri 2.11,并引入 ESLint 10/naming convention 规则。
- 开发/构建命令变化:开发改为 npm run tauri:dev,生产构建改为 npm run tauri:build,产物路径改到 src-tauri/target/release/bundle/。
- 移除旧 Electron 相关内容:删除 src/main/*、Electron 更新器、旧上传/打包脚本、旧主进程测试和 vite.main.config.mts。
Full Changelog: v4.3.0...v5.0.0

https://github.com/oldj/SwitchHosts/releases/tag/v5.0.0