diff --git a/.gitignore b/.gitignore
index 77767b4..8ac3527 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,8 +9,9 @@
/target/
/src-tauri/target/
/artifacts/
+/release/
# scripts/release.sh 的产物:通用二进制 + tar.gz + sha256。
-# 发布走 GitHub Release 附件和 Homebrew formula,不进仓库。
+# 桌面发布包只存在于 origin 的 releases 分支,GitHub 只镜像源码。
/dist/
node_modules/
.vite/
@@ -61,15 +62,3 @@ __pycache__/
# 输入法/软件在 cwd 落的调试日志(sogou 等)
debug.log
-
-# ── 显式纳管的发布产物 ───────────────────────────────────────────────
-!release/0.1.3/Squid-0.1.3-macOS-universal.dmg
-!release/0.1.3/Squid-Setup-0.1.3-win-x64.exe
-!release/0.1.4/Squid-0.1.4-macOS-universal.dmg
-!release/0.1.4/Squid-Setup-0.1.4-win-x64.exe
-!release/0.1.5/Squid-0.1.5-macOS-universal.dmg
-!release/0.1.5/Squid-Setup-0.1.5-win-x64.exe
-!release/0.1.6/Squid-0.1.6-macOS-universal.dmg
-!release/0.1.6/Squid-Setup-0.1.6-win-x64.exe
-!release/0.1.7/Squid-0.1.7-macOS-universal.dmg
-!release/0.1.7/Squid-Setup-0.1.7-win-x64.exe
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..1d446b6
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,100 @@
+# 更新日志 / Changelog
+
+Squid 的重要变更记录在这里。版本号使用语义化版本,日期为发布日。
+
+## [0.1.11] - 2026-11-22
+
+- 设置页的“常规”和“清理”分区改为整行布局,删除方式仍并排显示,版面更清晰。
+- 所有应用页移除一级标题下的二级描述,并收紧标题间距,减少重复信息。
+- 安全页新增白名单机制:可按发布者、应用目录或提示类型信任正常软件。
+- 已信任内容不再出现在默认列表和托盘计数中,可在安全页“已信任”筛选和“设置 → 安全”中查看、撤销。
+- 已确认威胁永远不会被白名单静默,目录信任也会拒绝系统目录、下载目录等过宽范围。
+
+## [0.1.10] - 2026-11-20
+
+- 重做应用图标:改用扁平双色设计,橙色圆角底加奶油色鱿鱼,去掉渐变与投影。
+- 重绘菜单栏单色图标,采用同一鱿鱼轮廓;侧边栏与“关于”页改用满版图标。
+- 设置页改为“常规 / 清理 / 安全 / 更新 / 关于”五个分区,常用项更集中。
+- 移除各页面大标题末尾的句号,标题更简洁。
+
+## [0.1.9] - 2026-11-19
+
+- 实时监控新增 CPU 面板:总体占用曲线,以及按逻辑核心排列的渐变占用柱。
+- 大幅降低实时监控的常驻 CPU 占用:主窗口收进托盘、小工具折叠或关闭全部面板时停止轮询;小工具与概览共用 2 秒轻量采样缓存。
+- 修复小工具自适应尺寸与重新停靠互相触发的问题,避免持续 IPC、重复写配置和 CPU 空转。
+- 日常清理新增“升级安装包”分类:识别微信、企业微信、WPS 等应用升级后遗留的安装包,并支持“跳过升级包,只删其余”。
+- Windows 全链路的“废纸篓”文案改为系统名称“回收站”,macOS 继续显示“废纸篓”。
+
+## [0.1.8] - 2026-11-18
+
+- 桌面小工具整合进“实时监控”:不再占用独立侧栏入口,可在监控页直接显示或隐藏。
+- 小工具设置移到窗口顶部:点击齿轮下拉即可调整面板、刷新频率、不透明度、停靠角和折叠记忆。
+- 日常清理与应用卸载移除主按钮上方的页头说明,保留原有间距。
+- 修复存储空间把应用包装挂载(nullfs)误识别为磁盘卷、导致根卷重复显示的问题。
+- 规则包尚未发布时,更新提示改为明确说明,而不是显示 curl 404。
+- 合并 Windows 权限管理、硬件规格、内存保留量、GPU 占用与桌面小工具等开发分支特性。
+- 系统托盘改用透明单色模板图标;macOS 随浅色/深色菜单栏自动着色。
+- Windows 安装器继续采用覆盖安装,并保留用户设置。
+
+## [0.1.7] - 2026-11-08
+
+- 概览页按新设计重做:智能维护、本机配置(系统、型号、处理器、内存、主硬盘、显卡)、处理器/内存/存储指标卡与日常维护入口。
+- 应用卸载列表与卸载方案显示应用真实图标;图标按需加载并缓存,读取失败时回退首字母。
+- 修复电池健康度:改用系统报告的 Maximum Capacity,Apple Silicon 不再把百分比再除以设计容量。
+- 修复 CPU 统计:使用全局占用和全部逻辑核心,不再把第一个核心当总量。
+- 修复内存统计:按 `vm_stat` 实际页大小解析 compressor / wired,并按 1024 进制显示。
+- 概览“本机配置”新增显卡信息(macOS `system_profiler`、Windows 注册表、Linux `lspci`)。
+- 启动项页按 macOS / Windows 自己的分法重做:“登录项 / 后台程序”页签,按安装它的应用分组,系统自带条目默认隐藏。
+- 启动项读取从 8.65 秒降到 0.34 秒。
+- 修复启动项、进程表与信任状态共 4 处 IPC 字段名不一致。
+- 修复进程表“由启动项启动”标记与筛选,按可执行文件路径关联启动项。
+- 修复带点名称的特权 helper 被误报未签名;新增“无法读取签名”状态。
+- 全部下拉菜单改为应用内自绘组件,列表统一为扁平分隔线。
+- 菜单第一项改名“概览”,除概览外移除重复的页面小标题,精简 22 处重复说明和 14 处冗长文案。
+
+## [0.1.6] - 2026-11-07
+
+- 新增“安全”页:恶意软件扫描(快速 / 全盘 / 自定义,都可取消)、按“已确认 / 可疑 / 提示”分级的发现列表、隔离区与恢复。
+- 新增“启动项”页:LaunchAgent、LaunchDaemon、登录项、注册表 Run/RunOnce、启动文件夹、计划任务与服务;当前用户拥有的条目可以直接停用与恢复。
+- 实时监控增加“进程”页签:全量进程表,含签名状态与所属启动项,可结束当前用户的进程,或对已确认恶意的文件“结束并隔离”。
+- 系统防护状态只读展示:macOS 读取 XProtect 版本与定义日期、启动/后台扫描与 Gatekeeper;Windows 读取当前杀毒产品、实时保护与定义版本。
+- 侧栏新增“保护”分组,入口共 10 个;快捷键调整为 `⌘7`/`⌘8` 安全与启动项,历史记录与设置顺延到 `⌘9`/`⌘0`。
+- 托盘与系统通知显示保护状态与待处理发现数量;点击通知直接进入发现列表。
+- 可选的定时扫描(登录后 / 每天 / 每周)、“自动隔离已确认项”(默认关闭)与独立于清理白名单的安全排除项。
+- 规则包:内置规则离线可用;可下载更新,校验大小与 SHA-256,并在构建内无公钥时明确标注“仅校验哈希 · 未验签”。
+- 不上传任何文件名、哈希、发现或隔离文件;不安装后台服务、内核扩展与常驻特权 helper。
+- 修复:桌面端二进制此前从未被 strip(`src-tauri` 独立于根 workspace,没有继承 release 配置),现已补上,universal 二进制减少约 20 MiB。
+
+## [0.1.5] - 2026-11-05
+
+- 语言默认跟随系统;macOS、Windows 与 Linux 分别读取对应的系统语言设置。
+- 语言设置只保留中文与 English 两项,切换后托盘菜单同步更新。
+- 设置中新增开机自启开关,使用当前用户级启动项,无需管理员权限。
+- 软件更新下载完成后的“放弃”按钮改为与 Shift 一致的中性描边样式。
+- 统一 Nex 暖色设计语言:界面只使用橙色主色、暖中性色与成功/警告/危险状态色。
+- README 提供双语首页以及完整的简体中文版和英文版。
+
+## [0.1.4] - 2026-11-05
+
+- 恢复左侧完整菜单:维护组包含“电脑概览、日常清理、应用卸载、深度清理”,洞察组包含“存储空间、实时监控”。
+- 保留 0.1.3 的托盘行为,关闭窗口后继续运行,可从托盘进入日常清理、应用卸载和深度清理。
+- 保留精简后的软件更新面板:仅发现新版本时显示版本变化与更新说明。
+- 按当前桌面端、CLI/TUI、共用引擎、安全边界和发布流程重新整理 README。
+
+## [0.1.3] - 2026-11-05
+
+- 隐藏更新面板中“已是最新版本”的重复提示。
+- 主导航精简为概览、日常清理和应用卸载。
+- Squid 关闭窗口后继续驻留托盘,可从托盘执行清理和深度清理。
+- 打包 macOS、Windows 与更新清单产物。
+
+## 0.1.0 - 0.1.2
+
+- 0.1.0:首个 macOS 磁盘清理版本,包含 CLI 与 TUI。
+- 0.1.1 - 0.1.2:补齐 Windows 平台层、回收站后端、30 条 Windows 清理规则与桌面安装包。逐项发布说明未保留。
+
+## 发布约定
+
+- 桌面安装包不提交到 `main`,只发布在 origin 仓库的 `releases` 分支。
+- GitHub 仓库只镜像源码,不承载 `releases` 分支;桌面端更新清单仍指向 origin 的发布通道。
+- 每个版本的安装包都必须通过大小与 SHA256 校验;带发布公钥的构建还会校验清单的 Ed25519 签名。
diff --git a/COPYRIGHT b/COPYRIGHT
new file mode 100644
index 0000000..bbf0806
--- /dev/null
+++ b/COPYRIGHT
@@ -0,0 +1,14 @@
+Squid
+Copyright (C) 2026 mula.liu
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, version 3 only (GPL-3.0-only).
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see .
diff --git a/Cargo.toml b/Cargo.toml
index 26a5a8b..d8c37db 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,8 +8,9 @@ version = "0.1.11"
edition = "2021"
rust-version = "1.95"
license = "GPL-3.0-only"
-authors = ["squid contributors"]
-repository = "https://github.com/nexdev/squid"
+authors = ["mula.liu"]
+repository = "https://github.com/VulpineLiu/squid"
+homepage = "https://github.com/VulpineLiu/squid"
description = "squid — one tool for cleaning, uninstalling, purging and monitoring your machine"
[workspace.dependencies]
diff --git a/README.en.md b/README.en.md
index fc82412..9903f7f 100644
--- a/README.en.md
+++ b/README.en.md
@@ -1,6 +1,6 @@
# Squid
-[简体中文](README.zh-CN.md) · [Bilingual home](README.md)
+[简体中文](README.zh-CN.md) · [Bilingual home](README.md) · [Usage guide](docs/USAGE.md) · [Changelog](CHANGELOG.md)
**Give your computer a bath.**
@@ -18,6 +18,21 @@ The desktop app, CLI, and TUI share one Rust scan-and-delete engine. Cleaning ru
The desktop app supports macOS 12+ and Windows 10/11 x64. The CLI and TUI share the same Rust workspace.
+## Download and install
+
+Current version **0.1.11** (2026-11-22). Desktop installers are published on the origin repository's `releases` branch:
+
+| Platform | Installer |
+| --- | --- |
+| macOS 12+ | [`Squid-0.1.11-macOS-universal.dmg`](https://git.unissense.tech/mula/nex_squid/raw/branch/releases/Squid-0.1.11-macOS-universal.dmg) |
+| Windows 10/11 x64 | [`Squid-Setup-0.1.11-win-x64.exe`](https://git.unissense.tech/mula/nex_squid/raw/branch/releases/Squid-Setup-0.1.11-win-x64.exe) |
+
+Release directory:
+
+Both installers are unsigned builds. On macOS, right-click **Open** the first time; on Windows, choose **More info** > **Run anyway** when SmartScreen appears. See the [usage guide](docs/USAGE.md) for installation, daily use, uninstall, and troubleshooting.
+
+The GitHub repository mirrors source code only and does not carry the `releases` branch. The app still checks the origin update channel.
+
## Features
| Feature | Description |
@@ -96,6 +111,7 @@ monitor sampler, refreshes at 2 / 5 / 10 seconds, and pauses while hidden.
- Version changes, release notes, and actions appear only when a newer version exists; there is no duplicate "up to date" message.
- After a verified download, install and restart, or use the neutral outlined **Discard** button that matches Shift to remove the downloaded file.
- Automatic checks are enabled by default and run at most once per day.
+- The manifest comes from the origin `releases` branch; GitHub mirrors source only and does not carry that branch.
- Installers must match the manifest's size and SHA256. Builds with a release public key also verify the manifest's Ed25519 signature.
### Permissions and privacy
@@ -320,6 +336,8 @@ The publish script rebuilds the `releases` branch with `squid-update.json`, both
See [`docs/RELEASE.md`](docs/RELEASE.md) for the full release, signing, and manifest process.
+The GitHub repository receives source branches such as `main` only. It never receives `releases`; the publish script pushes the update branch to origin, and GitHub clones keep using that origin channel.
+
## Platform status
| Platform | Status |
@@ -328,6 +346,17 @@ See [`docs/RELEASE.md`](docs/RELEASE.md) for the full release, signing, and mani
| Windows x64 | Desktop and CLI/TUI support; NSIS installer |
| Linux | Platform layer and basic CLI/TUI support; built-in rules and desktop installers are not yet provided |
+## Documentation
+
+- [Usage guide](docs/USAGE.md)
+- [Changelog](CHANGELOG.md)
+- [Architecture](docs/ARCHITECTURE.md)
+- [Desktop app](docs/DESKTOP.md)
+- [Release and updates](docs/RELEASE.md)
+- [Security](docs/SECURITY.md)
+
## License
-Squid is licensed under **GNU General Public License v3.0 only** (`GPL-3.0-only`). See [`LICENSE`](LICENSE).
+Squid is licensed under **GNU General Public License v3.0 only** (`GPL-3.0-only`).
+
+Copyright © 2026 mula.liu. See [`LICENSE`](LICENSE) and [`COPYRIGHT`](COPYRIGHT).
diff --git a/README.md b/README.md
index 51360c0..eb99412 100644
--- a/README.md
+++ b/README.md
@@ -2,22 +2,37 @@
**给你的电脑洗个澡。** · **Give your computer a bath.**
-[简体中文](README.zh-CN.md) · [English](README.en.md)
+[简体中文](README.zh-CN.md) · [English](README.en.md) · [使用帮助](docs/USAGE.zh-CN.md) · [Usage guide](docs/USAGE.md) · [更新日志](CHANGELOG.md)
Squid is a local system-care app for macOS and Windows. It cleans rebuildable caches and system junk, uninstalls apps with their leftovers, removes project build artefacts, maps disk usage, and monitors live system health.
Squid 是面向 macOS 与 Windows 的本地系统维护工具。桌面端、CLI 与 TUI 共用同一套 Rust 扫描和删除引擎,不依赖云端服务,也不需要 root。
+## Download / 下载
+
+Latest release: **0.1.11** (2026-11-22).
+
+| Platform | Package |
+| --- | --- |
+| macOS 12+ | [`Squid-0.1.11-macOS-universal.dmg`](https://git.unissense.tech/mula/nex_squid/raw/branch/releases/Squid-0.1.11-macOS-universal.dmg) |
+| Windows 10/11 x64 | [`Squid-Setup-0.1.11-win-x64.exe`](https://git.unissense.tech/mula/nex_squid/raw/branch/releases/Squid-Setup-0.1.11-win-x64.exe) |
+
+Installers live on the origin repository's `releases` branch:
+
+
+The GitHub repository mirrors source code only. It does not carry the `releases` branch, and the app's update feed still points at the origin channel.
+
+安装包发布在 origin 仓库的 `releases` 分支。GitHub 只镜像源码,不承载发布分支;应用更新仍从 origin 的发布通道检查。
+
## Highlights / 功能
-- **Daily cleanup / 日常清理** — 38 macOS rules and 30 Windows rules for caches, logs, crash reports, developer data, and Trash.
+- **Daily cleanup / 日常清理** — 38 macOS rules and 30 Windows rules for caches, logs, crash reports, developer data, upgrade installers, and Trash.
- **Uninstall apps / 应用卸载** — One plan for the app and its preferences, caches, containers, or AppData leftovers.
- **Deep Clean / 深度清理** — Rebuildable build output, disk images, installers, and stale downloads with project-age protection.
- **Storage & monitor / 存储与监控** — Folder-level disk analysis, live CPU, memory, network, disk, battery, and process views.
-- **Security / 安全** — XProtect and Defender status, malware scanning with confirmed / suspicious / advisory findings, and reversible quarantine. No daemon, no kernel extension, no upload.
+- **Security / 安全** — XProtect and Defender status, malware scanning with confirmed / suspicious / advisory findings, reversible quarantine, and a trust allowlist. No daemon, no kernel extension, no upload.
- **Startup items / 启动项** — LaunchAgents, LaunchDaemons, login items, registry Run keys, startup folders, scheduled tasks and services; disable the ones you own.
-- **Desktop widget / 桌面小工具** — Pin the Real-time monitor to the desktop as a focus-free board, with every setting in a dropdown at the top of the widget.
-- **Permissions (Windows) / 权限管理** — Startup entries, shell context menus and popup-window blocking, with a background watcher.
+- **Desktop widget / 桌面小工具** — Pin the Real-time monitor to the desktop as a focus-free board.
- **History & updates / 历史与更新** — Restorable Trash sessions and a size- and SHA256-verified update channel.
The interface follows the system language by default and can be switched to Simplified Chinese or English in Settings.
@@ -26,6 +41,8 @@ The interface follows the system language by default and can be switched to Simp
## Start / 开始
+Desktop development:
+
```bash
pnpm install
pnpm desktop:dev
@@ -34,7 +51,7 @@ pnpm desktop:dev
CLI / TUI:
```bash
-cargo install --path crates/squid-cli
+cargo install --path crates/squid-cli --locked
squid state
squid clean --dry-run
```
@@ -43,11 +60,22 @@ squid clean --dry-run
- [中文完整说明](README.zh-CN.md)
- [Full English guide](README.en.md)
+- [中文使用帮助](docs/USAGE.zh-CN.md)
+- [English usage guide](docs/USAGE.md)
+- [更新日志 / Changelog](CHANGELOG.md)
- [Architecture / 架构](docs/ARCHITECTURE.md)
- [Nex design standard / 设计规范](docs/DESIGN.md)
- [Desktop / 桌面端](docs/DESKTOP.md)
- [Release and updates / 发布与更新](docs/RELEASE.md)
+- [Security / 安全](docs/SECURITY.md)
+
+## Project / 项目
+
+- Source mirror:
+- Origin and update channel:
## License / 许可证
-**GNU General Public License v3.0 only** (`GPL-3.0-only`). See [`LICENSE`](LICENSE).
+**GNU General Public License v3.0 only** (`GPL-3.0-only`).
+
+Copyright © 2026 mula.liu. See [`LICENSE`](LICENSE) and [`COPYRIGHT`](COPYRIGHT).
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 6c801b7..1a5a03f 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -1,6 +1,6 @@
# Squid
-[English](README.en.md) · [返回双语首页](README.md)
+[English](README.en.md) · [返回双语首页](README.md) · [使用帮助](docs/USAGE.zh-CN.md) · [更新日志](CHANGELOG.md)
**给你的电脑洗个澡。**
@@ -18,6 +18,21 @@ Squid 是面向 macOS 与 Windows 的本地系统维护工具:清理可重建
桌面端支持 macOS 12+ 与 Windows 10/11 x64;CLI/TUI 使用同一个 Rust workspace。
+## 下载与安装
+
+当前版本 **0.1.11**(2026-11-22)。桌面安装包发布在 origin 仓库的 `releases` 分支:
+
+| 平台 | 安装包 |
+| --- | --- |
+| macOS 12+ | [`Squid-0.1.11-macOS-universal.dmg`](https://git.unissense.tech/mula/nex_squid/raw/branch/releases/Squid-0.1.11-macOS-universal.dmg) |
+| Windows 10/11 x64 | [`Squid-Setup-0.1.11-win-x64.exe`](https://git.unissense.tech/mula/nex_squid/raw/branch/releases/Squid-Setup-0.1.11-win-x64.exe) |
+
+发布目录:
+
+两个安装包都是未签名构建。macOS 首次打开请在访达中右键选择“打开”;Windows SmartScreen 提示时选择“更多信息” > “仍要运行”。完整的安装、使用、卸载与故障排查见[使用帮助](docs/USAGE.zh-CN.md)。
+
+GitHub 仓库只镜像源码,不承载 `releases` 分支;应用更新仍从 origin 的发布通道检查。
+
## 功能
| 功能 | 说明 |
@@ -83,6 +98,7 @@ Windows 上 `1`–`9` 依次是概览、日常清理、应用卸载、深度清
- 只有检测到更高版本时,才显示版本变化、更新说明和操作按钮;已经是最新版本时不显示额外提示。
- 下载完成后可安装并重启,或用与 Shift 一致的中性描边“放弃”按钮清除已下载文件。
- 自动检查默认开启,每天最多检查一次。
+- 更新清单来自项目 origin 的 `releases` 分支;GitHub 仅镜像源码,不承载发布分支。
- 安装包必须通过 SHA256 与文件大小校验;带发布公钥的构建还会校验清单的 Ed25519 签名。
### 权限与隐私
@@ -300,6 +316,8 @@ scripts/publish-release.sh --notes /path/to/release-notes.md
完整发布流程、签名和清单格式见 [`docs/RELEASE.md`](docs/RELEASE.md)。
+GitHub 仓库只推送 `main` 等源码分支,不推送 `releases`。发布脚本只向 origin 推送更新分支;GitHub 上的源码镜像继续使用 origin 的发布通道。
+
## 平台状态
| 平台 | 状态 |
@@ -308,6 +326,17 @@ scripts/publish-release.sh --notes /path/to/release-notes.md
| Windows x64 | 桌面端与 CLI/TUI 支持,发布 NSIS 安装包 |
| Linux | 平台层与 CLI/TUI 基础实现;尚未提供内置 Linux 规则和桌面安装包 |
+## 文档
+
+- [使用帮助](docs/USAGE.zh-CN.md)
+- [更新日志](CHANGELOG.md)
+- [架构说明](docs/ARCHITECTURE.md)
+- [桌面端说明](docs/DESKTOP.md)
+- [发布与更新](docs/RELEASE.md)
+- [安全说明](docs/SECURITY.md)
+
## 许可证
-Squid 使用 **GNU General Public License v3.0 only**(`GPL-3.0-only`)。完整条款见 [`LICENSE`](LICENSE)。
+Squid 使用 **GNU General Public License v3.0 only**(`GPL-3.0-only`)。
+
+Copyright © 2026 mula.liu。完整条款见 [`LICENSE`](LICENSE),版权与授权声明见 [`COPYRIGHT`](COPYRIGHT)。
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
new file mode 100644
index 0000000..2612938
--- /dev/null
+++ b/RELEASE_NOTES.md
@@ -0,0 +1,9 @@
+Squid 0.1.11
+
+- 设置页的“常规”和“清理”分区改为整行布局,删除方式仍并排显示,版面更清晰。
+- 所有应用页移除一级标题下的二级描述,并收紧标题间距,减少重复信息。
+- 安全页新增白名单机制:可按发布者、应用目录或提示类型信任正常软件。
+- 已信任内容不再出现在默认列表和托盘计数中,可在安全页“已信任”筛选和“设置 → 安全”中查看、撤销。
+- 已确认威胁永远不会被白名单静默,目录信任也会拒绝系统目录、下载目录等过宽范围。
+
+macOS 与 Windows 安装包均为未签名构建。macOS 首次打开请在访达中右键选择“打开”;Windows SmartScreen 提示时选择“更多信息” > “仍要运行”。
diff --git a/docs/DESKTOP.md b/docs/DESKTOP.md
index b027f72..253dccb 100644
--- a/docs/DESKTOP.md
+++ b/docs/DESKTOP.md
@@ -202,7 +202,9 @@ scanning if you do not want those prompts.
The update implementation mirrors `nex_shift`:
-- A build derives its feed from the git `origin` remote or `SQUID_UPDATE_URL`.
+- A build bakes the origin release feed by default; `SQUID_UPDATE_URL`
+ overrides it. The GitHub repository mirrors source only and does not carry
+ the `releases` branch, so a GitHub clone still updates from origin.
- The feed is an orphan `releases` branch containing installers and
`squid-update.json`.
- The manifest always provides exact byte size and SHA256; both are checked
diff --git a/docs/RELEASE.md b/docs/RELEASE.md
index 5433a99..301c915 100644
--- a/docs/RELEASE.md
+++ b/docs/RELEASE.md
@@ -3,6 +3,13 @@
Squid uses the same release model as `nex_shift`: a git branch is the update
server. No object storage or release API is required.
+There are two remotes:
+
+- `origin` is the canonical repository and the update channel. It carries the
+ orphan `releases` branch.
+- GitHub is a public source mirror. It receives `main` only and must never
+ receive `releases`.
+
## Artifact names
Both installers must carry the exact version from `src-tauri/tauri.conf.json`:
@@ -123,6 +130,14 @@ scripts/publish-release.sh --dry-run --key ~/.config/squid-release/release.ed255
scripts/publish-release.sh --no-push --key ~/.config/squid-release/release.ed25519
```
+The script pushes `releases` to `origin` only. Push the source mirror
+separately, and never push the release branch to GitHub:
+
+```bash
+git push origin main
+git push github main
+```
+
The branch contains:
```text
@@ -134,22 +149,33 @@ Squid-Setup--win-x64.exe
## Feed URL
-`src-tauri/build.rs` derives the manifest URL from `origin`:
+`src-tauri/build.rs` bakes a fixed default feed rather than deriving it from
+whatever remote a checkout happens to use:
-| Remote | Feed |
-| --- | --- |
-| Gitea / Forgejo | `https://host/owner/repo/raw/branch/releases/squid-update.json` |
-| GitHub | `https://github.com/owner/repo/raw/releases/squid-update.json` |
-| GitLab | `https://gitlab.example/owner/repo/-/raw/releases/squid-update.json` |
+```text
+https://git.unissense.tech/mula/nex_squid/raw/branch/releases/squid-update.json
+```
-`SQUID_UPDATE_URL` overrides it at build time. The same variable at runtime
-overrides the baked value, which is useful for staging feeds:
+This is deliberate: GitHub clones have `origin` pointing at GitHub, which does
+not carry the `releases` branch. A GitHub clone must still update from the
+origin channel.
+
+For forks or staging feeds, `SQUID_UPDATE_URL` overrides the default at build
+time. The same variable at runtime overrides the baked value:
```bash
SQUID_UPDATE_URL=https://host/owner/repo/raw/branch/staging/squid-update.json \
open Squid.app
```
+The matching raw-file layouts are:
+
+| Host | Feed |
+| --- | --- |
+| Gitea / Forgejo | `https://host/owner/repo/raw/branch/releases/squid-update.json` |
+| GitHub | `https://github.com/owner/repo/raw/releases/squid-update.json` |
+| GitLab | `https://gitlab.example/owner/repo/-/raw/releases/squid-update.json` |
+
## Manifest
Schema version 1:
@@ -203,4 +229,4 @@ Keep these four values equal:
- `package.json`
Then run frontend checks, Rust tests (including `src-tauri`), build both
-installers, and publish.
+installers, update `CHANGELOG.md` and `RELEASE_NOTES.md`, and publish.
diff --git a/docs/USAGE.md b/docs/USAGE.md
new file mode 100644
index 0000000..03df7b6
--- /dev/null
+++ b/docs/USAGE.md
@@ -0,0 +1,265 @@
+# Squid Usage Guide
+
+For Squid 0.1.11. See [`README.en.md`](../README.en.md) for the project overview and [`CHANGELOG.md`](../CHANGELOG.md) for version history.
+
+## 1. Download and install
+
+Desktop installers are published on the origin repository's `releases` branch. The GitHub repository mirrors source code only and does not carry that branch.
+
+- Release directory:
+- Update manifest:
+
+Current version 0.1.11:
+
+| Platform | Installer |
+| --- | --- |
+| macOS 12+ | [`Squid-0.1.11-macOS-universal.dmg`](https://git.unissense.tech/mula/nex_squid/raw/branch/releases/Squid-0.1.11-macOS-universal.dmg) |
+| Windows 10/11 x64 | [`Squid-Setup-0.1.11-win-x64.exe`](https://git.unissense.tech/mula/nex_squid/raw/branch/releases/Squid-Setup-0.1.11-win-x64.exe) |
+
+Both installers are unsigned builds. Verify their exact size and SHA256 against `SHA256SUMS.txt` in the release directory.
+
+### macOS
+
+1. Open the DMG and drag `Squid.app` into Applications.
+2. On first launch, right-click `Squid` in Finder and choose **Open**.
+3. If macOS reports that the app is damaged, remove the download quarantine flag and open it again:
+
+ ```bash
+ xattr -dr com.apple.quarantine /Applications/Squid.app
+ open /Applications/Squid.app
+ ```
+
+4. Squid needs no root access and installs no background service, kernel extension, or privileged helper.
+
+### Windows
+
+1. Run `Squid-Setup--win-x64.exe`.
+2. If SmartScreen appears, choose **More info** > **Run anyway**.
+3. The default install location is `%LOCALAPPDATA%\Programs\Squid`; no administrator rights are required.
+4. If the installer cannot write to `%TEMP%` (some 360 / PC Manager environments), use `一键安装.bat` from the release directory. It copies the installer to `%TEMP%` on drive C: and starts it there.
+5. If Squid opens a blank window, install the Microsoft Edge WebView2 Evergreen Runtime and relaunch:
+
+
+## 2. First launch
+
+- The interface follows the system language by default. Switch between Simplified Chinese and English in **Settings → General**.
+- The first launch shows an optional permission-readiness card once. It does not force a system permission prompt and does not block startup.
+- Closing the main window only hides it; Squid keeps running in the tray. Only **Quit Squid** in the tray menu ends the process.
+- **Settings → Startup** enables launch at login. It writes a user-level startup item and needs no administrator access.
+
+## 3. Desktop app
+
+### Sidebar
+
+- **Maintenance**: Overview, Daily cleanup, Uninstall apps, Deep Clean, Permissions (Windows only)
+- **Protection**: Security, Startup items
+- **Insights**: Storage, Real-time monitor
+- **Bottom**: History, Settings
+
+Use `⌘1`–`⌘8` on macOS or `Ctrl+1`–`Ctrl+9` on Windows to switch pages in sidebar order. macOS hides the Windows-only Permissions screen, so later pages shift up.
+
+### Daily cleanup
+
+1. Open **Daily cleanup** and choose a scan scope.
+2. Review results by category; each category can be unchecked independently.
+3. Choose the deletion mode: Trash / Recycle Bin by default, or explicit permanent deletion.
+4. Start cleanup and confirm the dialog.
+
+Rules cover app and browser caches, logs, crash reports, developer caches, upgrade installers, and Trash / Recycle Bin. macOS ships 38 built-in rules; Windows ships 30. Every CLI delete command supports `--dry-run`; the desktop app scans before you select anything.
+
+### Uninstall apps
+
+1. Open **Uninstall apps** and search for an app.
+2. Squid builds one plan containing the app bundle plus preferences, caches, containers, or AppData leftovers.
+3. Review every item, then confirm.
+
+Leftover matching excludes common document extensions so user documents are not treated as app leftovers.
+
+### Deep Clean
+
+Deep Clean finds rebuildable build output such as `node_modules`, disk images, installers, and stale downloads. Edit `purge_roots` to change the default project roots; `purge_min_age_days` protects projects that are still in use.
+
+### Storage
+
+Choose a folder and Squid measures it level by level, listing the largest children and files. Storage analysis reads only folders you choose or configure; file contents are never uploaded.
+
+### Real-time monitor and processes
+
+- Samples CPU, memory, network, disk, battery, volumes, and high-usage processes every two seconds.
+- The **Processes** tab lists every process with its signature status and startup entry.
+- Before ending a process, Squid samples it again and checks the name. Squid itself, PID 1, and critical system processes are refused.
+- The monitor can be pinned as a desktop widget; all widget settings open from the gear at its top.
+
+### Security
+
+- Reads XProtect / Defender state; it never turns protection off or changes it for you.
+- Scans by hash, YARA rule, and heuristic, grading findings as confirmed / suspicious / advisory.
+- Confirmed findings can be quarantined and restored.
+- The Security page can trust normal software by publisher, app folder, or advisory class. Confirmed threats are never silently allowlisted.
+- File names, hashes, findings, and quarantined files are never uploaded.
+
+### Startup items and Permissions
+
+- **Startup items** lists LaunchAgents, LaunchDaemons, login items, registry Run/RunOnce keys, startup folders, scheduled tasks, and services. Entries owned by the current user can be disabled and re-enabled.
+- Windows **Permissions** groups startup entries by app and adds shell context-menu extensions, popup-window rules, and a background watcher.
+
+### History and undo
+
+Every real deletion is recorded in a local ledger. Items still in Trash / Recycle Bin can be restored from **History**. On the CLI, use `squid history` and `squid undo`.
+
+### Software updates
+
+- Automatic checks run at most once a day; check manually in **Settings → Updates**.
+- The manifest comes from the origin `releases` branch, not from GitHub.
+- Installers must match the manifest's exact size and SHA256. Builds with a release public key also verify the manifest's Ed25519 signature.
+- After a verified download, install and restart, or discard the downloaded file.
+
+## 4. CLI and TUI
+
+Install:
+
+```bash
+cargo install --path crates/squid-cli --locked
+```
+
+Or build from source:
+
+```bash
+cargo build --release -p squid-cli
+```
+
+Common commands:
+
+| Command | Purpose |
+| --- | --- |
+| `squid state` | Open the TUI |
+| `squid status` | Print a system snapshot |
+| `squid clean --dry-run` | Preview cleanable items |
+| `squid clean -y` | Run cleanup by rule |
+| `squid uninstall --list` | List installed apps |
+| `squid uninstall ` | Build an app-plus-leftovers uninstall plan |
+| `squid purge ` | Remove project build artefacts |
+| `squid analyze ` | Print a directory-size tree and largest files |
+| `squid history` | Review the deletion ledger |
+| `squid undo [ID]` | Restore the latest or a named Trash session |
+| `squid whitelist add\|list\|remove` | Maintain protected paths |
+| `squid rules` | List active rules |
+| `squid doctor` | Check permissions, configuration, history, and effective paths |
+| `squid guard status` | Report XProtect / Defender state, rule-pack version, startup counts, and quarantine size |
+| `squid guard scan [PATHS…]` | Scan for malware; `--full`, `--json`, `-y` to auto-quarantine confirmed findings |
+| `squid guard startup` | List login/startup entries; `--all`, `--risky` |
+| `squid guard quarantine ` / `restore ` | Quarantine or restore a finding |
+| `squid guard held` | List quarantine contents and reasons |
+
+Every delete command supports `--dry-run`. Non-interactive environments must pass `-y/--yes` or Squid refuses the deletion. Run `squid --help` for complete options.
+
+## 5. Configuration and data
+
+| Purpose | macOS | Windows |
+| --- | --- | --- |
+| Configuration and rules | `~/Library/Application Support/squid/` | `%APPDATA%\squid\` |
+| History ledger | `~/Library/Application Support/squid/history/` | `%APPDATA%\squid\history\` |
+| Delete destination | `~/.Trash` or permanent deletion | Recycle Bin or permanent deletion |
+
+Linux uses XDG directories. The desktop app and CLI/TUI share configuration and history.
+
+Common configuration (`config.toml`):
+
+```toml
+delete_mode = "trash"
+history_keep = 60
+purge_min_age_days = 7
+purge_max_entries = 200000
+show_allocated = true
+# Empty means "follow system"; set "en" or "zh" to override
+language = ""
+whitelist = ["~/Library/Caches/ImportantApp"]
+disabled_rules = ["user-trash"]
+purge_roots = ["~/code", "~/Projects", "~/Desktop"]
+```
+
+Main environment variables:
+
+| Variable | Purpose |
+| --- | --- |
+| `SQUID_CONFIG_DIR` | Override the configuration directory |
+| `SQUID_STATE_DIR` | Override the state and history directory |
+| `SQUID_LANG` | Force the CLI/TUI language to `zh` or `en` |
+| `SQUID_UPDATE_URL` | Override the desktop update manifest URL for staging |
+| `SQUID_TRUECOLOR` / `NO_COLOR` | Control TUI color |
+| `SQUID_SYMBOL_CELLS` / `SQUID_CONSOLE_TRACE` | Diagnose Windows console character width and layout |
+
+## 6. Safety model
+
+1. The desktop UI can only submit indexes from a scan, never arbitrary paths.
+2. Before execution, Squid rebuilds each item and rechecks ownership, safety anchors, protected locations, the whitelist, and lock state.
+3. Deletion goes to Trash / Recycle Bin by default; permanent deletion must be explicit.
+4. System roots, `/usr`, `/System`, `/Applications`, and similar locations cannot be recursively deleted. Symlinks are never followed.
+5. Every real deletion is recorded in a local ledger; items still in Trash can be restored.
+6. Before ending a process, Squid samples it again and refuses critical system processes.
+
+## 7. Uninstall
+
+### macOS
+
+1. Quit Squid.
+2. Move `/Applications/Squid.app` to the Trash.
+3. To remove configuration and history as well:
+
+ ```bash
+ rm -rf "$HOME/Library/Application Support/squid"
+ ```
+
+### Windows
+
+1. Uninstall Squid from **Settings → Apps**.
+2. To remove configuration and history as well, delete `%APPDATA%\squid`.
+
+### CLI
+
+```bash
+cargo uninstall squid-cli
+```
+
+## 8. Troubleshooting
+
+### macOS says the app is damaged
+
+This is Gatekeeper quarantine on an unsigned build, not a damaged file. If right-click **Open** is not enough:
+
+```bash
+xattr -dr com.apple.quarantine /Applications/Squid.app
+```
+
+### Windows opens a blank window
+
+Install the WebView2 Evergreen Runtime and relaunch Squid.
+
+### Windows installer cannot write temporary files
+
+When the installer runs from a non-system drive or a folder restricted by endpoint protection, NSIS may fail to unpack into `%TEMP%`. Copy it to `%TEMP%` on drive C: and run it there, or use `一键安装.bat` from the release directory.
+
+### Cleanup finds less than expected
+
+Check Full Disk Access on macOS, plus `whitelist`, `disabled_rules`, and the Security page's trusted list. Without Full Disk Access, TCC-protected locations are skipped and the Security page reports coverage as limited.
+
+### Update check fails
+
+Confirm the origin release channel is reachable:
+
+
+
+In a proxy or offline environment, set `SQUID_UPDATE_URL` to a reachable mirror of the manifest.
+
+### TUI layout is wrong
+
+Try `SQUID_TRUECOLOR=0` or `NO_COLOR=1`. On Windows consoles, use `SQUID_SYMBOL_CELLS` / `SQUID_CONSOLE_TRACE` to diagnose character width and layout.
+
+## 9. More documentation
+
+- [Project overview](../README.en.md)
+- [Changelog](../CHANGELOG.md)
+- [Architecture](ARCHITECTURE.md)
+- [Desktop app](DESKTOP.md)
+- [Release and updates](RELEASE.md)
+- [Security](SECURITY.md)
diff --git a/docs/USAGE.zh-CN.md b/docs/USAGE.zh-CN.md
new file mode 100644
index 0000000..2b022fe
--- /dev/null
+++ b/docs/USAGE.zh-CN.md
@@ -0,0 +1,265 @@
+# Squid 使用帮助
+
+适用于 Squid 0.1.11。项目说明见 [`README.zh-CN.md`](../README.zh-CN.md),版本历史见 [`CHANGELOG.md`](../CHANGELOG.md)。
+
+## 1. 下载与安装
+
+Squid 的桌面安装包发布在 origin 仓库的 `releases` 分支。GitHub 只镜像源码,不承载这个分支。
+
+- 发布目录:
+- 更新清单:
+
+当前版本 0.1.11:
+
+| 平台 | 安装包 |
+| --- | --- |
+| macOS 12+ | [`Squid-0.1.11-macOS-universal.dmg`](https://git.unissense.tech/mula/nex_squid/raw/branch/releases/Squid-0.1.11-macOS-universal.dmg) |
+| Windows 10/11 x64 | [`Squid-Setup-0.1.11-win-x64.exe`](https://git.unissense.tech/mula/nex_squid/raw/branch/releases/Squid-Setup-0.1.11-win-x64.exe) |
+
+两个安装包都是未签名构建。校验文件大小和 SHA256 的方法见发布目录中的 `SHA256SUMS.txt`。
+
+### macOS
+
+1. 打开 DMG,把 `Squid.app` 拖进“应用程序”。
+2. 第一次启动请在访达中右键 `Squid`,选择“打开”。
+3. 如果系统提示“已损坏,无法打开”,去掉下载隔离属性后再启动:
+
+ ```bash
+ xattr -dr com.apple.quarantine /Applications/Squid.app
+ open /Applications/Squid.app
+ ```
+
+4. Squid 不需要 root,也不会安装后台服务、内核扩展或特权 helper。
+
+### Windows
+
+1. 运行 `Squid-Setup--win-x64.exe`。
+2. SmartScreen 提示时选择“更多信息” > “仍要运行”。
+3. 默认安装到 `%LOCALAPPDATA%\Programs\Squid`,不需要管理员权限。
+4. 如果安装器无法把临时文件写入 `%TEMP%`(部分 360 / 电脑管家环境),使用发布目录里的 `一键安装.bat`:它先把安装包复制到 C 盘的 `%TEMP%`,再启动安装。
+5. 如果启动后窗口空白,安装 Microsoft Edge WebView2 Evergreen Runtime 后重试:
+
+
+## 2. 首次启动
+
+- 界面语言默认跟随系统,可在“设置 → 常规”切换简体中文或 English。
+- 首次启动会显示一次可选的权限检查卡片,不会强制弹出系统权限窗口,也不会阻止应用启动。
+- 关闭主窗口只会隐藏窗口,Squid 继续驻留托盘;只有托盘菜单里的“退出 Squid”才会结束进程。
+- “设置 → 启动”可以打开开机自启。它只写入当前用户级启动项,不需要管理员权限。
+
+## 3. 桌面端
+
+### 左侧菜单
+
+- **维护**:概览、日常清理、应用卸载、深度清理、权限管理(仅 Windows)
+- **保护**:安全、启动项
+- **洞察**:存储空间、实时监控
+- **底部**:历史记录、设置
+
+macOS 使用 `⌘1`–`⌘8`,Windows 使用 `Ctrl+1`–`Ctrl+9` 按侧栏顺序切换页面。macOS 隐藏 Windows 专属的权限管理,后面的页面顺延。
+
+### 日常清理
+
+1. 打开“日常清理”,选择扫描范围。
+2. 扫描完成后按分类检查结果;每个分类都可以单独取消勾选。
+3. 选择删除方式:默认进废纸篓/回收站,也可以显式选择永久删除。
+4. 点击清理,并在确认框中确认。
+
+规则覆盖应用与浏览器缓存、日志、崩溃报告、开发缓存、升级安装包和废纸篓/回收站。macOS 内置 38 条规则,Windows 内置 30 条规则。所有删除命令都支持 `--dry-run`(CLI),桌面端则先扫描再选择。
+
+### 应用卸载
+
+1. 打开“应用卸载”,搜索应用名称。
+2. 选中应用后,Squid 会把应用本体与偏好、缓存、容器或 AppData 残留组成同一个卸载计划。
+3. 检查计划中的每一项,确认后执行。
+
+残留匹配会排除常见文档后缀,避免把用户文档当成应用残留。
+
+### 深度清理
+
+“深度清理”查找 `node_modules` 等可重建构建产物、磁盘镜像、安装包和陈旧下载。默认项目根目录可以在配置里的 `purge_roots` 修改;`purge_min_age_days` 用来保护近期仍在使用的项目。
+
+### 存储空间
+
+选择一个目录后,Squid 逐层测量目录体积,并列出最大子项和最大文件。存储分析只在用户选择或配置目录后读取,文件内容不会上传。
+
+### 实时监控与进程
+
+- 每两秒采样 CPU、内存、网络、磁盘、电池、卷和高占用进程。
+- “进程”页签列出全部进程及其签名状态与启动项来源。
+- 结束进程前 Squid 会重新采样并核对名称,拒绝 Squid 自身、系统首进程和关键系统进程。
+- 可以把实时监控固定成桌面小工具;小工具设置从顶部齿轮下拉打开。
+
+### 安全
+
+- 读取 XProtect / Defender 状态,不会替你关闭或修改系统防护。
+- 按哈希、YARA 规则与启发式扫描恶意软件,发现分为“已确认 / 可疑 / 提示”三级。
+- 已确认项可以隔离,也可以从隔离区恢复。
+- 安全页支持按发布者、应用目录或提示类型信任正常软件;已确认威胁不会被白名单静默。
+- 不上传文件名、哈希、扫描结果或被隔离的文件。
+
+### 启动项与权限管理
+
+- “启动项”列出 LaunchAgent、LaunchDaemon、登录项、注册表 Run/RunOnce、启动文件夹、计划任务与服务;当前用户拥有的条目可以停用和恢复。
+- Windows 的“权限管理”按软件分组启动项,并提供右键菜单扩展、弹窗规则与后台监听。
+
+### 历史记录与撤销
+
+每次真实删除都会写入本地账本。仍在废纸篓/回收站中的内容可以在“历史记录”里还原;CLI 使用 `squid history` 和 `squid undo`。
+
+### 软件更新
+
+- 默认每天最多自动检查一次,也可以在“设置 → 更新”手动检查。
+- 更新清单来自 origin 的 `releases` 分支,不来自 GitHub。
+- 安装包必须匹配清单中的精确大小和 SHA256;带发布公钥的构建还会校验清单的 Ed25519 签名。
+- 下载完成后可以安装并重启,或清除已下载文件。
+
+## 4. CLI 与 TUI
+
+安装:
+
+```bash
+cargo install --path crates/squid-cli --locked
+```
+
+或者从源码构建:
+
+```bash
+cargo build --release -p squid-cli
+```
+
+常用命令:
+
+| 命令 | 作用 |
+| --- | --- |
+| `squid state` | 打开 TUI |
+| `squid status` | 输出系统快照 |
+| `squid clean --dry-run` | 预览可清理内容 |
+| `squid clean -y` | 按规则执行清理 |
+| `squid uninstall --list` | 列出已安装应用 |
+| `squid uninstall ` | 生成应用本体加残留的卸载计划 |
+| `squid purge ` | 清理项目构建产物 |
+| `squid analyze ` | 输出目录体积树与最大文件 |
+| `squid history` | 查看删除账本 |
+| `squid undo [ID]` | 还原最近一次或指定废纸篓会话 |
+| `squid whitelist add\|list\|remove` | 维护保护路径 |
+| `squid rules` | 列出当前生效的规则 |
+| `squid doctor` | 检查权限、配置、历史文件和生效路径 |
+| `squid guard status` | 报告 XProtect / Defender 状态、规则包版本、启动项数量与隔离区占用 |
+| `squid guard scan [PATHS…]` | 扫描恶意软件;`--full` 全盘,`--json` 输出 JSON,`-y` 自动隔离已确认项 |
+| `squid guard startup` | 列出登录/启动条目;`--all` 含系统自带,`--risky` 只看需注意的 |
+| `squid guard quarantine ` / `restore ` | 隔离或恢复指定发现 |
+| `squid guard held` | 列出隔离区内容与原因 |
+
+所有删除命令都支持 `--dry-run`。非交互环境必须显式使用 `-y/--yes`,否则 Squid 会拒绝执行删除。完整参数运行 `squid --help`。
+
+## 5. 配置与数据
+
+| 用途 | macOS | Windows |
+| --- | --- | --- |
+| 配置与规则 | `~/Library/Application Support/squid/` | `%APPDATA%\squid\` |
+| 历史账本 | `~/Library/Application Support/squid/history/` | `%APPDATA%\squid\history\` |
+| 删除去向 | `~/.Trash` 或永久删除 | 回收站或永久删除 |
+
+Linux 使用 XDG 目录。桌面端与 CLI/TUI 共用配置和历史。
+
+常用配置(`config.toml`):
+
+```toml
+delete_mode = "trash"
+history_keep = 60
+purge_min_age_days = 7
+purge_max_entries = 200000
+show_allocated = true
+# 留空表示跟随系统;也可以设为 "en" 或 "zh"
+language = ""
+whitelist = ["~/Library/Caches/ImportantApp"]
+disabled_rules = ["user-trash"]
+purge_roots = ["~/code", "~/Projects", "~/Desktop"]
+```
+
+常用环境变量:
+
+| 变量 | 作用 |
+| --- | --- |
+| `SQUID_CONFIG_DIR` | 覆盖配置目录 |
+| `SQUID_STATE_DIR` | 覆盖状态与历史目录 |
+| `SQUID_LANG` | 强制 CLI/TUI 使用 `zh` 或 `en` |
+| `SQUID_UPDATE_URL` | 覆盖桌面端更新清单地址,适合测试发布通道 |
+| `SQUID_TRUECOLOR` / `NO_COLOR` | 控制 TUI 颜色 |
+| `SQUID_SYMBOL_CELLS` / `SQUID_CONSOLE_TRACE` | 排查 Windows 控制台字符宽度与排版 |
+
+## 6. 安全边界
+
+1. 桌面界面只能提交扫描结果中的索引,不能提交任意待删除路径。
+2. 执行前重新构造并校验路径所有权、安全锚点、保护列表、白名单和锁定状态。
+3. 默认删除到废纸篓/回收站;永久删除必须显式选择。
+4. 系统根目录、`/usr`、`/System`、`/Applications` 等位置不能被递归删除,符号链接不会被跟随。
+5. 每次真实删除写入本地账本,仍可还原的内容可以撤销。
+6. 结束进程前重新采样并核对名称,拒绝关键系统进程。
+
+## 7. 卸载
+
+### macOS
+
+1. 退出 Squid。
+2. 把 `/Applications/Squid.app` 移到废纸篓。
+3. 如需同时删除配置和历史:
+
+ ```bash
+ rm -rf "$HOME/Library/Application Support/squid"
+ ```
+
+### Windows
+
+1. 在“设置 → 应用”中卸载 Squid。
+2. 如需同时删除配置和历史,删除 `%APPDATA%\squid`。
+
+### CLI
+
+```bash
+cargo uninstall squid-cli
+```
+
+## 8. 故障排查
+
+### macOS 提示“已损坏,无法打开”
+
+这是未签名构建被 Gatekeeper 隔离,不是文件损坏。右键“打开”仍然不行时:
+
+```bash
+xattr -dr com.apple.quarantine /Applications/Squid.app
+```
+
+### Windows 启动后窗口空白
+
+安装 WebView2 Evergreen Runtime 后重新启动 Squid。
+
+### Windows 安装器提示无法写入临时文件
+
+安装包在非系统盘或受端点防护限制的目录运行时,NSIS 可能无法解压到 `%TEMP%`。把安装包复制到 C 盘的 `%TEMP%` 再运行,或使用发布目录里的 `一键安装.bat`。
+
+### 清理结果比预期少
+
+检查是否授予了完整磁盘访问(macOS),以及 `whitelist`、`disabled_rules` 和安全页的“已信任”列表。没有完整磁盘访问时,受 TCC 保护的位置会被跳过,安全页会把覆盖范围标为“受限”。
+
+### 更新检查失败
+
+确认能访问 origin 的发布通道:
+
+
+
+代理或离线环境可以设置 `SQUID_UPDATE_URL` 指向可访问的镜像清单。
+
+### TUI 排版异常
+
+尝试设置 `SQUID_TRUECOLOR=0`、`NO_COLOR=1`,或在 Windows 控制台设置 `SQUID_SYMBOL_CELLS` / `SQUID_CONSOLE_TRACE` 排查字符宽度。
+
+## 9. 更多文档
+
+- [项目说明](../README.zh-CN.md)
+- [更新日志](../CHANGELOG.md)
+- [架构说明](ARCHITECTURE.md)
+- [桌面端说明](DESKTOP.md)
+- [发布与更新](RELEASE.md)
+- [安全说明](SECURITY.md)
diff --git a/package.json b/package.json
index f227f1f..f8e2ca4 100644
--- a/package.json
+++ b/package.json
@@ -3,6 +3,13 @@
"private": true,
"version": "0.1.11",
"type": "module",
+ "author": "mula.liu",
+ "license": "GPL-3.0-only",
+ "homepage": "https://github.com/VulpineLiu/squid",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/VulpineLiu/squid.git"
+ },
"scripts": {
"dev": "vite --port 1420 --strictPort",
"build": "tsc && vite build",
diff --git a/packaging/homebrew/squid.rb b/packaging/homebrew/squid.rb
index 32883ec..fe59517 100644
--- a/packaging/homebrew/squid.rb
+++ b/packaging/homebrew/squid.rb
@@ -8,10 +8,10 @@
# Intel 上都能装,bottle 交给 `brew tap-new` 的 CI 去做。
class Squid < Formula
desc "Clean, uninstall, purge and watch a Mac from the terminal"
- homepage "https://github.com/nexdev/squid"
- version "0.1.0"
+ homepage "https://github.com/VulpineLiu/squid"
+ version "0.1.11"
sha256 "REPLACE_WITH_DIST_SQUID_TARBALL_SHA256"
- url "https://github.com/nexdev/squid/releases/download/v#{version}/squid-#{version}-universal-apple-darwin.tar.gz"
+ url "https://github.com/VulpineLiu/squid/releases/download/v#{version}/squid-#{version}-universal-apple-darwin.tar.gz"
license "GPL-3.0-only"
# 也可以直接从源码装(不需要预先发 release):
diff --git a/release/0.1.3/README-Windows-x64.txt b/release/0.1.3/README-Windows-x64.txt
deleted file mode 100644
index 519d92b..0000000
--- a/release/0.1.3/README-Windows-x64.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Squid 0.1.3 - Windows x64
-
-系统要求
---------
-- Windows 10 或 Windows 11(x64;ARM64 设备通过系统兼容层运行)。
-- Microsoft Edge WebView2 Runtime。Windows 10/11 通常已内置;如果 Squid
- 启动后窗口空白,请从微软官方页面安装 WebView2 Evergreen Runtime:
- https://developer.microsoft.com/microsoft-edge/webview2/
-- 安装与运行都不需要管理员权限。安装位置为
- %LOCALAPPDATA%\Programs\Squid。
-
-安装
-----
-1. 运行 Squid-Setup-0.1.3-win-x64.exe。
-2. 这是未签名构建。若 SmartScreen 显示警告,请选择“更多信息” > “仍要运行”。
-3. 卸载请在 Windows“设置 > 应用”中移除 Squid。
-
-更新
-----
-Squid 使用与 nex_shift 一致的 releases 分支更新通道。更新包会先校验
-文件大小与 SHA256,再在退出后运行同一个安装程序。若构建时写入发布公钥,
-还会验证清单的 Ed25519 签名。
-
-校验
-----
-PowerShell:
- Get-FileHash .\Squid-Setup-0.1.3-win-x64.exe -Algorithm SHA256
diff --git a/release/0.1.3/SHA256SUMS.txt b/release/0.1.3/SHA256SUMS.txt
deleted file mode 100644
index 7585e70..0000000
--- a/release/0.1.3/SHA256SUMS.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-d44c41f88496652384380ceca1bff24656acb815f78fc32a57a35f29dce5c6d7 Squid-0.1.3-macOS-universal.dmg
-64619e91347b64c3fa3e1ac69b1148667e06c920e756a473b370a4abaf82de2b Squid-Setup-0.1.3-win-x64.exe
-56fc98cb26b7ea24959eea9b043e96d9dfa0b635ee049d3c263f0be58d9b3960 README-Windows-x64.txt
diff --git a/release/0.1.3/Squid-0.1.3-macOS-universal.dmg b/release/0.1.3/Squid-0.1.3-macOS-universal.dmg
deleted file mode 100644
index bcbe852..0000000
Binary files a/release/0.1.3/Squid-0.1.3-macOS-universal.dmg and /dev/null differ
diff --git a/release/0.1.3/Squid-Setup-0.1.3-win-x64.exe b/release/0.1.3/Squid-Setup-0.1.3-win-x64.exe
deleted file mode 100644
index 2f741a1..0000000
Binary files a/release/0.1.3/Squid-Setup-0.1.3-win-x64.exe and /dev/null differ
diff --git a/release/0.1.3/squid-update.json b/release/0.1.3/squid-update.json
deleted file mode 100644
index ae7d0e1..0000000
--- a/release/0.1.3/squid-update.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "schema": 1,
- "version": "0.1.3",
- "date": "2026-11-05",
- "notes": "Squid 0.1.3\n\n- 软件更新仅在发现新版本时显示版本变化与更新说明。\n- 左侧导航精简为「电脑概览、日常清理、应用卸载」。\n- 关闭主窗口后常驻托盘;托盘菜单提供「日常清理、应用卸载、深度清理」及退出。\n- macOS 与 Windows 同步发布 0.1.3。",
- "artifacts": {
- "macos": {
- "file": "Squid-0.1.3-macOS-universal.dmg",
- "sha256": "d44c41f88496652384380ceca1bff24656acb815f78fc32a57a35f29dce5c6d7",
- "size": 10688482
- },
- "windows": {
- "file": "Squid-Setup-0.1.3-win-x64.exe",
- "sha256": "64619e91347b64c3fa3e1ac69b1148667e06c920e756a473b370a4abaf82de2b",
- "size": 3343118
- }
- }
-}
diff --git a/release/0.1.4/README-Windows-x64.txt b/release/0.1.4/README-Windows-x64.txt
deleted file mode 100644
index 6c835a5..0000000
--- a/release/0.1.4/README-Windows-x64.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Squid 0.1.4 - Windows x64
-
-系统要求
---------
-- Windows 10 或 Windows 11(x64;ARM64 设备通过系统兼容层运行)。
-- Microsoft Edge WebView2 Runtime。Windows 10/11 通常已内置;如果 Squid
- 启动后窗口空白,请从微软官方页面安装 WebView2 Evergreen Runtime:
- https://developer.microsoft.com/microsoft-edge/webview2/
-- 安装与运行都不需要管理员权限。安装位置为
- %LOCALAPPDATA%\Programs\Squid。
-
-安装
-----
-1. 运行 Squid-Setup-0.1.4-win-x64.exe。
-2. 这是未签名构建。若 SmartScreen 显示警告,请选择“更多信息” > “仍要运行”。
-3. 卸载请在 Windows“设置 > 应用”中移除 Squid。
-
-更新
-----
-Squid 使用与 nex_shift 一致的 releases 分支更新通道。更新包会先校验
-文件大小与 SHA256,再在退出后运行同一个安装程序。若构建时写入发布公钥,
-还会验证清单的 Ed25519 签名。
-
-校验
-----
-PowerShell:
- Get-FileHash .\Squid-Setup-0.1.4-win-x64.exe -Algorithm SHA256
diff --git a/release/0.1.4/RELEASE_NOTES.md b/release/0.1.4/RELEASE_NOTES.md
deleted file mode 100644
index 642211f..0000000
--- a/release/0.1.4/RELEASE_NOTES.md
+++ /dev/null
@@ -1,7 +0,0 @@
-Squid 0.1.4
-
-- 恢复左侧完整菜单:维护组包含「电脑概览、日常清理、应用卸载、深度清理」,洞察组包含「存储空间、实时监控」。
-- 保留 0.1.3 的托盘行为,关闭窗口后继续运行,可从托盘进入日常清理、应用卸载和深度清理。
-- 保留精简后的软件更新面板:仅发现新版本时显示版本变化与更新说明。
-- 按当前桌面端、CLI/TUI、共用引擎、安全边界和发布流程重新整理 README。
-- macOS 与 Windows 同步发布 0.1.4。
diff --git a/release/0.1.4/SHA256SUMS.txt b/release/0.1.4/SHA256SUMS.txt
deleted file mode 100644
index 4904b64..0000000
--- a/release/0.1.4/SHA256SUMS.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-7b4f91ed0064b8f5e6ed4965167e860fdf6e98b7e576a3fdcd5775521f0fce0b Squid-0.1.4-macOS-universal.dmg
-970ce8339e3832d045c07f3c13e45793fc9eac9cb22c95cdf1a1ebc5d2c37f24 Squid-Setup-0.1.4-win-x64.exe
-9937a1bd780b1df60e05df49f2e70434e02eed9e853d30230c89aa7d520867ff README-Windows-x64.txt
diff --git a/release/0.1.4/Squid-0.1.4-macOS-universal.dmg b/release/0.1.4/Squid-0.1.4-macOS-universal.dmg
deleted file mode 100644
index 40108ee..0000000
Binary files a/release/0.1.4/Squid-0.1.4-macOS-universal.dmg and /dev/null differ
diff --git a/release/0.1.4/Squid-Setup-0.1.4-win-x64.exe b/release/0.1.4/Squid-Setup-0.1.4-win-x64.exe
deleted file mode 100644
index 5edfb89..0000000
Binary files a/release/0.1.4/Squid-Setup-0.1.4-win-x64.exe and /dev/null differ
diff --git a/release/0.1.4/squid-update.json b/release/0.1.4/squid-update.json
deleted file mode 100644
index 5fb2215..0000000
--- a/release/0.1.4/squid-update.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "schema": 1,
- "version": "0.1.4",
- "date": "2026-11-05",
- "notes": "Squid 0.1.4\n\n- 恢复左侧完整菜单:维护组包含「电脑概览、日常清理、应用卸载、深度清理」,洞察组包含「存储空间、实时监控」。\n- 保留 0.1.3 的托盘行为,关闭窗口后继续运行,可从托盘进入日常清理、应用卸载和深度清理。\n- 保留精简后的软件更新面板:仅发现新版本时显示版本变化与更新说明。\n- 按当前桌面端、CLI/TUI、共用引擎、安全边界和发布流程重新整理 README。\n- macOS 与 Windows 同步发布 0.1.4。",
- "artifacts": {
- "macos": {
- "file": "Squid-0.1.4-macOS-universal.dmg",
- "sha256": "7b4f91ed0064b8f5e6ed4965167e860fdf6e98b7e576a3fdcd5775521f0fce0b",
- "size": 10689388
- },
- "windows": {
- "file": "Squid-Setup-0.1.4-win-x64.exe",
- "sha256": "970ce8339e3832d045c07f3c13e45793fc9eac9cb22c95cdf1a1ebc5d2c37f24",
- "size": 3342175
- }
- }
-}
diff --git a/release/0.1.5/README-Windows-x64.txt b/release/0.1.5/README-Windows-x64.txt
deleted file mode 100644
index ba9f738..0000000
--- a/release/0.1.5/README-Windows-x64.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Squid 0.1.5 - Windows x64
-
-系统要求
---------
-- Windows 10 或 Windows 11(x64;ARM64 设备通过系统兼容层运行)。
-- Microsoft Edge WebView2 Runtime。Windows 10/11 通常已内置;如果 Squid
- 启动后窗口空白,请从微软官方页面安装 WebView2 Evergreen Runtime:
- https://developer.microsoft.com/microsoft-edge/webview2/
-- 安装与运行都不需要管理员权限。安装位置为
- %LOCALAPPDATA%\Programs\Squid。
-
-安装
-----
-1. 运行 Squid-Setup-0.1.5-win-x64.exe。
-2. 这是未签名构建。若 SmartScreen 显示警告,请选择“更多信息” > “仍要运行”。
-3. 卸载请在 Windows“设置 > 应用”中移除 Squid。
-
-更新
-----
-Squid 使用与 nex_shift 一致的 releases 分支更新通道。更新包会先校验
-文件大小与 SHA256,再在退出后运行同一个安装程序。若构建时写入发布公钥,
-还会验证清单的 Ed25519 签名。
-
-校验
-----
-PowerShell:
- Get-FileHash .\Squid-Setup-0.1.5-win-x64.exe -Algorithm SHA256
diff --git a/release/0.1.5/RELEASE_NOTES.md b/release/0.1.5/RELEASE_NOTES.md
deleted file mode 100644
index f921cde..0000000
--- a/release/0.1.5/RELEASE_NOTES.md
+++ /dev/null
@@ -1,9 +0,0 @@
-Squid 0.1.5
-
-- 语言默认跟随系统;macOS、Windows 与 Linux 分别读取对应的系统语言设置。
-- 语言设置只保留中文与 English 两项,默认选中当前系统语言;切换后托盘菜单同步更新。
-- 设置中新增开机自启开关,使用当前用户级启动项,无需管理员权限。
-- 软件更新下载完成后的「放弃」按钮改为与 Shift 一致的中性描边样式。
-- 统一 Nex 暖色设计语言:界面只使用橙色主色、暖中性色与成功/警告/危险状态色,移除蓝色、紫色、青色和粉色装饰。
-- README 提供双语首页以及完整的简体中文版和英文版。
-- macOS 与 Windows 同步发布 0.1.5。
diff --git a/release/0.1.5/SHA256SUMS.txt b/release/0.1.5/SHA256SUMS.txt
deleted file mode 100644
index 325cd30..0000000
--- a/release/0.1.5/SHA256SUMS.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-57028b3872a9dbe965752b6451cc06fcec19d6d92b2e40710e5bbd49b2b60bd2 Squid-0.1.5-macOS-universal.dmg
-9e85eefc348e066f873f3b91c6202f0e906c166a0c50a8fec4de6db7dc1f907b Squid-Setup-0.1.5-win-x64.exe
-2048178675631a41f39961413d6865c462e5366ffeb890431c373cd7cb8440cb README-Windows-x64.txt
diff --git a/release/0.1.5/Squid-0.1.5-macOS-universal.dmg b/release/0.1.5/Squid-0.1.5-macOS-universal.dmg
deleted file mode 100644
index fa3a7b8..0000000
Binary files a/release/0.1.5/Squid-0.1.5-macOS-universal.dmg and /dev/null differ
diff --git a/release/0.1.5/Squid-Setup-0.1.5-win-x64.exe b/release/0.1.5/Squid-Setup-0.1.5-win-x64.exe
deleted file mode 100644
index 76b36f3..0000000
Binary files a/release/0.1.5/Squid-Setup-0.1.5-win-x64.exe and /dev/null differ
diff --git a/release/0.1.5/squid-update.json b/release/0.1.5/squid-update.json
deleted file mode 100644
index b8ec820..0000000
--- a/release/0.1.5/squid-update.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "schema": 1,
- "version": "0.1.5",
- "date": "2026-11-05",
- "notes": "Squid 0.1.5\n\n- 语言默认跟随系统;macOS、Windows 与 Linux 分别读取对应的系统语言设置。\n- 语言设置只保留中文与 English 两项,默认选中当前系统语言;切换后托盘菜单同步更新。\n- 设置中新增开机自启开关,使用当前用户级启动项,无需管理员权限。\n- 软件更新下载完成后的「放弃」按钮改为与 Shift 一致的中性描边样式。\n- 统一 Nex 暖色设计语言:界面只使用橙色主色、暖中性色与成功/警告/危险状态色,移除蓝色、紫色、青色和粉色装饰。\n- README 提供双语首页以及完整的简体中文版和英文版。\n- macOS 与 Windows 同步发布 0.1.5。",
- "artifacts": {
- "macos": {
- "file": "Squid-0.1.5-macOS-universal.dmg",
- "sha256": "57028b3872a9dbe965752b6451cc06fcec19d6d92b2e40710e5bbd49b2b60bd2",
- "size": 10702261
- },
- "windows": {
- "file": "Squid-Setup-0.1.5-win-x64.exe",
- "sha256": "9e85eefc348e066f873f3b91c6202f0e906c166a0c50a8fec4de6db7dc1f907b",
- "size": 3354754
- }
- }
-}
diff --git a/release/0.1.6/README-Windows-x64.txt b/release/0.1.6/README-Windows-x64.txt
deleted file mode 100644
index 3d9c4ae..0000000
--- a/release/0.1.6/README-Windows-x64.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Squid 0.1.6 - Windows x64
-
-系统要求
---------
-- Windows 10 或 Windows 11(x64;ARM64 设备通过系统兼容层运行)。
-- Microsoft Edge WebView2 Runtime。Windows 10/11 通常已内置;如果 Squid
- 启动后窗口空白,请从微软官方页面安装 WebView2 Evergreen Runtime:
- https://developer.microsoft.com/microsoft-edge/webview2/
-- 安装与运行都不需要管理员权限。安装位置为
- %LOCALAPPDATA%\Programs\Squid。
-
-安装
-----
-1. 运行 Squid-Setup-0.1.6-win-x64.exe。
-2. 这是未签名构建。若 SmartScreen 显示警告,请选择“更多信息” > “仍要运行”。
-3. 卸载请在 Windows“设置 > 应用”中移除 Squid。
-
-更新
-----
-Squid 使用与 nex_shift 一致的 releases 分支更新通道。更新包会先校验
-文件大小与 SHA256,再在退出后运行同一个安装程序。若构建时写入发布公钥,
-还会验证清单的 Ed25519 签名。
-
-校验
-----
-PowerShell:
- Get-FileHash .\Squid-Setup-0.1.6-win-x64.exe -Algorithm SHA256
diff --git a/release/0.1.6/RELEASE_NOTES.md b/release/0.1.6/RELEASE_NOTES.md
deleted file mode 100644
index f34e69d..0000000
--- a/release/0.1.6/RELEASE_NOTES.md
+++ /dev/null
@@ -1,14 +0,0 @@
-Squid 0.1.6
-
-- 新增「安全」页:恶意软件扫描(快速 / 全盘 / 自定义,都可取消)、按「已确认 / 可疑 / 提示」分级的发现列表、隔离区与恢复。
-- 新增「启动项」页:LaunchAgent、LaunchDaemon、登录项、注册表 Run/RunOnce、启动文件夹、计划任务与服务;当前用户拥有的条目可以直接停用与恢复,且可逆。
-- 实时监控增加「进程」页签:全量进程表,含签名状态与所属启动项,可结束当前用户的进程,或对已确认恶意的文件「结束并隔离」。
-- 系统防护状态只读展示:macOS 读取 XProtect 版本与定义日期、启动/后台扫描与 Gatekeeper;Windows 读取当前杀毒产品、实时保护与定义版本。Squid 不替代 XProtect / Defender 的实时防护。
-- 侧栏新增「保护」分组,入口共 10 个。快捷键调整:`⌘7`/`⌘8` 现为安全与启动项,历史记录与设置顺延到 `⌘9`/`⌘0`。
-- 托盘与系统通知会显示保护状态与待处理发现数量;点击通知直接进入发现列表。
-- 可选的定时扫描(登录后 / 每天 / 每周)、「自动隔离已确认项」(默认关闭)与独立于清理白名单的安全排除项。
-- 规则包:内置规则离线可用;可下载更新,校验大小与 SHA-256,并在构建内无公钥时明确标注「仅校验哈希 · 未验签」,不把未验签说成已验证。
-- 不上传任何文件名、哈希、发现或隔离文件;不安装后台服务、内核扩展与常驻特权 helper。
-- 两个新页面沿用既有界面规范与配色,不新增第二套组件样式。
-- 修复:桌面端二进制此前从未被 strip(`src-tauri` 独立于根 workspace,没有继承 release 配置),现已补上,universal 二进制减少约 20 MiB。
-- macOS 与 Windows 同步发布 0.1.6。
diff --git a/release/0.1.6/SHA256SUMS.txt b/release/0.1.6/SHA256SUMS.txt
deleted file mode 100644
index d0f81d3..0000000
--- a/release/0.1.6/SHA256SUMS.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-859c1f4fcab14fbe1a343a9b5ee190bba6b324a627a7337653dd4b5c62db9761 Squid-0.1.6-macOS-universal.dmg
-73f4df78c7aae8f975aa67335bfca7148698a4988d6b7d2e20665ec9908ef128 Squid-Setup-0.1.6-win-x64.exe
-38da48607f55c64bcbbf6592927fe75a773ac12778701d4e7ce17e122af426d8 README-Windows-x64.txt
diff --git a/release/0.1.6/Squid-0.1.6-macOS-universal.dmg b/release/0.1.6/Squid-0.1.6-macOS-universal.dmg
deleted file mode 100644
index bf0445c..0000000
Binary files a/release/0.1.6/Squid-0.1.6-macOS-universal.dmg and /dev/null differ
diff --git a/release/0.1.6/Squid-Setup-0.1.6-win-x64.exe b/release/0.1.6/Squid-Setup-0.1.6-win-x64.exe
deleted file mode 100644
index c7b4449..0000000
Binary files a/release/0.1.6/Squid-Setup-0.1.6-win-x64.exe and /dev/null differ
diff --git a/release/0.1.6/squid-update.json b/release/0.1.6/squid-update.json
deleted file mode 100644
index 997b7b2..0000000
--- a/release/0.1.6/squid-update.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "schema": 1,
- "version": "0.1.6",
- "date": "2026-11-07",
- "notes": "Squid 0.1.6\n\n- 新增「安全」页:恶意软件扫描(快速 / 全盘 / 自定义,都可取消)、按「已确认 / 可疑 / 提示」分级的发现列表、隔离区与恢复。\n- 新增「启动项」页:LaunchAgent、LaunchDaemon、登录项、注册表 Run/RunOnce、启动文件夹、计划任务与服务;当前用户拥有的条目可以直接停用与恢复,且可逆。\n- 实时监控增加「进程」页签:全量进程表,含签名状态与所属启动项,可结束当前用户的进程,或对已确认恶意的文件「结束并隔离」。\n- 系统防护状态只读展示:macOS 读取 XProtect 版本与定义日期、启动/后台扫描与 Gatekeeper;Windows 读取当前杀毒产品、实时保护与定义版本。Squid 不替代 XProtect / Defender 的实时防护。\n- 侧栏新增「保护」分组,入口共 10 个。快捷键调整:`⌘7`/`⌘8` 现为安全与启动项,历史记录与设置顺延到 `⌘9`/`⌘0`。\n- 托盘与系统通知会显示保护状态与待处理发现数量;点击通知直接进入发现列表。\n- 可选的定时扫描(登录后 / 每天 / 每周)、「自动隔离已确认项」(默认关闭)与独立于清理白名单的安全排除项。\n- 规则包:内置规则离线可用;可下载更新,校验大小与 SHA-256,并在构建内无公钥时明确标注「仅校验哈希 · 未验签」,不把未验签说成已验证。\n- 不上传任何文件名、哈希、发现或隔离文件;不安装后台服务、内核扩展与常驻特权 helper。\n- 两个新页面沿用既有界面规范与配色,不新增第二套组件样式。\n- 修复:桌面端二进制此前从未被 strip(`src-tauri` 独立于根 workspace,没有继承 release 配置),现已补上,universal 二进制减少约 20 MiB。\n- macOS 与 Windows 同步发布 0.1.6。",
- "artifacts": {
- "macos": {
- "file": "Squid-0.1.6-macOS-universal.dmg",
- "sha256": "859c1f4fcab14fbe1a343a9b5ee190bba6b324a627a7337653dd4b5c62db9761",
- "size": 21831698
- },
- "windows": {
- "file": "Squid-Setup-0.1.6-win-x64.exe",
- "sha256": "73f4df78c7aae8f975aa67335bfca7148698a4988d6b7d2e20665ec9908ef128",
- "size": 7816721
- }
- }
-}
diff --git a/release/0.1.7/README-Windows-x64.txt b/release/0.1.7/README-Windows-x64.txt
deleted file mode 100644
index 88c344c..0000000
--- a/release/0.1.7/README-Windows-x64.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-Squid 0.1.7 - Windows x64
-
-系统要求
---------
-- Windows 10 或 Windows 11(x64;ARM64 设备通过系统兼容层运行)。
-- Microsoft Edge WebView2 Runtime。Windows 10/11 通常已内置;如果 Squid
- 启动后窗口空白,请从微软官方页面安装 WebView2 Evergreen Runtime:
- https://developer.microsoft.com/microsoft-edge/webview2/
-- 安装与运行都不需要管理员权限。安装位置为
- %LOCALAPPDATA%\Programs\Squid。
-
-安装
-----
-1. 运行 Squid-Setup-0.1.7-win-x64.exe。
-2. 这是未签名构建。若 SmartScreen 显示警告,请选择“更多信息” > “仍要运行”。
-3. 卸载请在 Windows“设置 > 应用”中移除 Squid。
-
-更新
-----
-Squid 使用与 nex_shift 一致的 releases 分支更新通道。更新包会先校验
-文件大小与 SHA256,再在退出后运行同一个安装程序。若构建时写入发布公钥,
-还会验证清单的 Ed25519 签名。
-
-校验
-----
-PowerShell:
- Get-FileHash .\Squid-Setup-0.1.7-win-x64.exe -Algorithm SHA256
diff --git a/release/0.1.7/RELEASE_NOTES.md b/release/0.1.7/RELEASE_NOTES.md
deleted file mode 100644
index 4f45d56..0000000
--- a/release/0.1.7/RELEASE_NOTES.md
+++ /dev/null
@@ -1,16 +0,0 @@
-Squid 0.1.7
-
-- 概览页按新设计重做:智能维护、本机配置(系统、型号、处理器、内存、主硬盘、显卡)、处理器/内存/存储指标卡与日常维护入口;扫描结果仍在下方。
-- 应用卸载列表与卸载方案显示应用真实图标(macOS / Windows);图标按需加载并缓存,读取失败时回退首字母。
-- 实时监控修复电池健康度:改用系统报告的 Maximum Capacity,Apple Silicon 不再把百分比再除以设计容量;本机显示 86%,循环次数 516。
-- 修复 CPU 统计:使用全局占用和全部逻辑核心,不再把第一个核心当总量,也不再少算一个核心。
-- 修复内存统计:按 `vm_stat` 实际页大小(Apple Silicon 为 16 KiB)解析 compressor / wired;内存按 1024 进制显示,16 GB 不再显示为 17.2 GB。
-- 概览「本机配置」新增显卡信息(macOS `system_profiler`、Windows 注册表、Linux `lspci`)。
-- 启动项页按 macOS / Windows 自己的分法重做:「登录项 / 后台程序」页签,按安装它的应用分组;系统自带条目默认隐藏。
-- 启动项读取从 8.65 秒降到 0.34 秒:不再为系统自带和已不存在的条目逐个询问签名,其余项并行处理。
-- 修复启动项、进程表与信任状态共 4 处 IPC 字段名不一致:隐藏系统项恢复生效,启动时间、工作目录与 ad-hoc 签名状态不再显示为空或错误。
-- 修复进程表「由启动项启动」标记与筛选:按可执行文件路径关联启动项,现在能正确显示与筛选。
-- 修复带点名称的特权 helper 被误报未签名;新增「无法读取签名」状态,不再把读不到说成没签名。
-- 全部下拉菜单改为应用内自绘组件,不再弹出系统原生控件;列表统一为扁平分隔线。
-- 菜单第一项改名「概览」;除概览外移除重复的页面小标题,精简 22 处重复说明和 14 处冗长文案。
-- macOS 与 Windows 同步发布 0.1.7。两个安装包均为未签名构建,首次打开需要用户自行授权(macOS 右键打开,Windows SmartScreen「仍要运行」)。
diff --git a/release/0.1.7/SHA256SUMS.txt b/release/0.1.7/SHA256SUMS.txt
deleted file mode 100644
index cbaf480..0000000
--- a/release/0.1.7/SHA256SUMS.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-f1841a084c76af824cbc5bc0feb2dd35a76743c03597c86bd64b0a478f6ad071 Squid-0.1.7-macOS-universal.dmg
-34bc8444f6241b50e7ba7edb4a4875989f950481a4c7d2da21125cca5b5694df Squid-Setup-0.1.7-win-x64.exe
-cb826847c7b598b0121d80f64cd954ec2dc2d23e6d559ad87fa767c051af8805 README-Windows-x64.txt
diff --git a/release/0.1.7/Squid-0.1.7-macOS-universal.dmg b/release/0.1.7/Squid-0.1.7-macOS-universal.dmg
deleted file mode 100644
index 83891cc..0000000
Binary files a/release/0.1.7/Squid-0.1.7-macOS-universal.dmg and /dev/null differ
diff --git a/release/0.1.7/Squid-Setup-0.1.7-win-x64.exe b/release/0.1.7/Squid-Setup-0.1.7-win-x64.exe
deleted file mode 100644
index 9506999..0000000
Binary files a/release/0.1.7/Squid-Setup-0.1.7-win-x64.exe and /dev/null differ
diff --git a/release/0.1.7/squid-update.json b/release/0.1.7/squid-update.json
deleted file mode 100644
index 9578678..0000000
--- a/release/0.1.7/squid-update.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "schema": 1,
- "version": "0.1.7",
- "date": "2026-11-08",
- "notes": "Squid 0.1.7\n\n- 概览页按新设计重做:智能维护、本机配置(系统、型号、处理器、内存、主硬盘、显卡)、处理器/内存/存储指标卡与日常维护入口;扫描结果仍在下方。\n- 应用卸载列表与卸载方案显示应用真实图标(macOS / Windows);图标按需加载并缓存,读取失败时回退首字母。\n- 实时监控修复电池健康度:改用系统报告的 Maximum Capacity,Apple Silicon 不再把百分比再除以设计容量;本机显示 86%,循环次数 516。\n- 修复 CPU 统计:使用全局占用和全部逻辑核心,不再把第一个核心当总量,也不再少算一个核心。\n- 修复内存统计:按 `vm_stat` 实际页大小(Apple Silicon 为 16 KiB)解析 compressor / wired;内存按 1024 进制显示,16 GB 不再显示为 17.2 GB。\n- 概览「本机配置」新增显卡信息(macOS `system_profiler`、Windows 注册表、Linux `lspci`)。\n- 启动项页按 macOS / Windows 自己的分法重做:「登录项 / 后台程序」页签,按安装它的应用分组;系统自带条目默认隐藏。\n- 启动项读取从 8.65 秒降到 0.34 秒:不再为系统自带和已不存在的条目逐个询问签名,其余项并行处理。\n- 修复启动项、进程表与信任状态共 4 处 IPC 字段名不一致:隐藏系统项恢复生效,启动时间、工作目录与 ad-hoc 签名状态不再显示为空或错误。\n- 修复进程表「由启动项启动」标记与筛选:按可执行文件路径关联启动项,现在能正确显示与筛选。\n- 修复带点名称的特权 helper 被误报未签名;新增「无法读取签名」状态,不再把读不到说成没签名。\n- 全部下拉菜单改为应用内自绘组件,不再弹出系统原生控件;列表统一为扁平分隔线。\n- 菜单第一项改名「概览」;除概览外移除重复的页面小标题,精简 22 处重复说明和 14 处冗长文案。\n- macOS 与 Windows 同步发布 0.1.7。两个安装包均为未签名构建,首次打开需要用户自行授权(macOS 右键打开,Windows SmartScreen「仍要运行」)。",
- "artifacts": {
- "macos": {
- "file": "Squid-0.1.7-macOS-universal.dmg",
- "sha256": "f1841a084c76af824cbc5bc0feb2dd35a76743c03597c86bd64b0a478f6ad071",
- "size": 21933611
- },
- "windows": {
- "file": "Squid-Setup-0.1.7-win-x64.exe",
- "sha256": "34bc8444f6241b50e7ba7edb4a4875989f950481a4c7d2da21125cca5b5694df",
- "size": 7875018
- }
- }
-}
diff --git a/scripts/build-windows-release.sh b/scripts/build-windows-release.sh
index 094b804..ee45131 100755
--- a/scripts/build-windows-release.sh
+++ b/scripts/build-windows-release.sh
@@ -131,9 +131,9 @@ text = f"""Squid {version} - Windows x64
更新
----
-Squid 使用与 nex_shift 一致的 releases 分支更新通道。更新包会先校验
-文件大小与 SHA256,再在退出后运行同一个安装程序。若构建时写入发布公钥,
-还会验证清单的 Ed25519 签名。
+Squid 的更新清单来自 origin 仓库的 releases 分支;GitHub 只镜像源码,
+不承载发布分支。更新包会先校验文件大小与 SHA256,再在退出后运行同一个
+安装程序。若构建时写入发布公钥,还会验证清单的 Ed25519 签名。
校验
----
diff --git a/scripts/windows-installer.nsi b/scripts/windows-installer.nsi
index 35aee47..70797bf 100644
--- a/scripts/windows-installer.nsi
+++ b/scripts/windows-installer.nsi
@@ -29,7 +29,7 @@
!define APP_NAME "Squid"
!define APP_ID "app.nex.squid"
!define APP_VERSION "${VERSION}"
-!define PUBLISHER "Squid Contributors"
+!define PUBLISHER "mula.liu"
!define UNINSTALL_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_ID}"
!define WEBVIEW_KEY "SOFTWARE\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}"
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index cdadb58..34e441b 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -2,10 +2,12 @@
name = "squid-desktop"
version = "0.1.11"
description = "Squid — a CleanMyMac-inspired cleaner, uninstaller and system monitor."
-authors = ["squid contributors"]
+authors = ["mula.liu"]
edition = "2021"
rust-version = "1.95"
license = "GPL-3.0-only"
+repository = "https://github.com/VulpineLiu/squid"
+homepage = "https://github.com/VulpineLiu/squid"
default-run = "squid-desktop"
[lib]
diff --git a/src-tauri/Info.plist b/src-tauri/Info.plist
index 83bb199..8f8e9a9 100644
--- a/src-tauri/Info.plist
+++ b/src-tauri/Info.plist
@@ -16,5 +16,7 @@
Squid can analyze network volumes you select.
NSAppleEventsUsageDescription
Squid reads the login items macOS lists in System Settings so the startup page can show the same ones.
+ NSHumanReadableCopyright
+ Copyright © 2026 mula.liu
diff --git a/src-tauri/build.rs b/src-tauri/build.rs
index f6bd454..6db8abe 100644
--- a/src-tauri/build.rs
+++ b/src-tauri/build.rs
@@ -1,67 +1,28 @@
//! Build-time wiring for the git-backed update channel.
//!
-//! The feed lives in this repository's `releases` branch. The manifest URL is
-//! derived from the `origin` remote, matching the mechanism used by nex_shift.
-//! `SQUID_UPDATE_URL` and `SQUID_UPDATE_PUBKEY` are the two explicit overrides.
+//! The feed lives in the origin repository's orphan `releases` branch. The
+//! GitHub repository is a source mirror and deliberately does not carry that
+//! branch, so the default URL is fixed instead of being derived from whatever
+//! remote a checkout happens to use. `SQUID_UPDATE_URL` and
+//! `SQUID_UPDATE_PUBKEY` are the two explicit overrides.
-use std::{path::Path, process::Command};
+use std::env;
-const RELEASE_BRANCH: &str = "releases";
-const MANIFEST: &str = "squid-update.json";
+const DEFAULT_UPDATE_URL: &str =
+ "https://git.unissense.tech/mula/nex_squid/raw/branch/releases/squid-update.json";
const PUBKEY_ENV: &str = "SQUID_UPDATE_PUBKEY";
-fn git(args: &[&str]) -> Option {
- let output = Command::new("git")
- .args(args)
- .current_dir(Path::new(env!("CARGO_MANIFEST_DIR")).parent()?)
- .output()
- .ok()?;
- if !output.status.success() {
- return None;
- }
- let text = String::from_utf8(output.stdout).ok()?;
- let text = text.trim().to_string();
- (!text.is_empty()).then_some(text)
-}
-
-fn parse_remote(url: &str) -> Option<(String, String)> {
- let url = url.trim().trim_end_matches('/').trim_end_matches(".git");
- let (host, path) = if let Some(rest) = url.strip_prefix("ssh://") {
- rest.split_once('/')?
- } else if let Some(rest) = url.find("://").map(|index| &url[index + 3..]) {
- rest.split_once('/')?
- } else if let Some((host, path)) = url.split_once(':') {
- (host.strip_prefix("git@")?, path)
- } else {
- return None;
- };
- (!host.is_empty() && !path.is_empty()).then(|| (format!("https://{host}"), path.to_string()))
-}
-
-fn raw_directory(host: &str, path: &str) -> String {
- let domain = host.replace("https://", "");
- let segment = if domain.ends_with("github.com") {
- format!("raw/{RELEASE_BRANCH}")
- } else if domain.contains("gitlab") {
- format!("-/raw/{RELEASE_BRANCH}")
- } else {
- format!("raw/branch/{RELEASE_BRANCH}")
- };
- format!("{host}/{path}/{segment}")
-}
-
-fn manifest_url() -> Option {
- if let Ok(url) = std::env::var("SQUID_UPDATE_URL") {
+fn manifest_url() -> String {
+ if let Ok(url) = env::var("SQUID_UPDATE_URL") {
if !url.trim().is_empty() {
- return Some(url.trim().to_string());
+ return url.trim().to_string();
}
}
- let (host, path) = parse_remote(&git(&["remote", "get-url", "origin"])?)?;
- Some(format!("{}/{}", raw_directory(&host, &path), MANIFEST))
+ DEFAULT_UPDATE_URL.to_string()
}
fn public_key() -> Result {
- let raw = match std::env::var(PUBKEY_ENV) {
+ let raw = match env::var(PUBKEY_ENV) {
Ok(value) => value,
Err(_) => return Ok(String::new()),
};
@@ -81,11 +42,7 @@ fn main() {
println!("cargo:rerun-if-changed=../dist");
println!("cargo:rerun-if-env-changed=SQUID_UPDATE_URL");
println!("cargo:rerun-if-env-changed={PUBKEY_ENV}");
- println!("cargo:rerun-if-changed=../.git/config");
- println!(
- "cargo:rustc-env=SQUID_UPDATE_URL={}",
- manifest_url().unwrap_or_default()
- );
+ println!("cargo:rustc-env=SQUID_UPDATE_URL={}", manifest_url());
match public_key() {
Ok(key) => println!("cargo:rustc-env=SQUID_UPDATE_PUBKEY={key}"),
Err(error) => panic!("{error}"),
diff --git a/src-tauri/src/update.rs b/src-tauri/src/update.rs
index 3b96410..c51bec4 100644
--- a/src-tauri/src/update.rs
+++ b/src-tauri/src/update.rs
@@ -1,10 +1,11 @@
//! Git-backed update channel, matching the model used by nex_shift.
//!
//! Installers and a `squid-update.json` manifest live on an orphan `releases`
-//! branch in this repository. A checkout over HTTPS is the whole update server.
-//! The app verifies the installer's exact byte length and SHA256 before it can
-//! run, and verifies a detached Ed25519 signature when a release key was baked
-//! into the build. A helper replaces the app after it exits.
+//! branch in the origin repository. GitHub mirrors the source but does not carry
+//! that branch. A checkout over HTTPS is the whole update server. The app
+//! verifies the installer's exact byte length and SHA256 before it can run, and
+//! verifies a detached Ed25519 signature when a release key was baked into the
+//! build. A helper replaces the app after it exits.
use std::{
collections::BTreeMap,
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json
index 4d40c28..66b63ff 100644
--- a/src-tauri/tauri.conf.json
+++ b/src-tauri/tauri.conf.json
@@ -36,6 +36,10 @@
"active": true,
"targets": ["app", "dmg", "nsis"],
"category": "Utility",
+ "publisher": "mula.liu",
+ "copyright": "Copyright © 2026 mula.liu",
+ "homepage": "https://github.com/VulpineLiu/squid",
+ "license": "GPL-3.0-only",
"shortDescription": "Clean, uninstall, purge and monitor your Mac or PC.",
"longDescription": "Squid is a cross-platform system care app for macOS and Windows. It scans caches and system junk, removes applications with their leftovers, finds project build artefacts, maps disk usage and monitors live system health.",
"icon": [