Changelog
- Previews change nothing:
mo uninstall --dry-runandmo purge --dry-runnow only report what would happen; before, a preview withMOLE_DRY_RUN=1still ran each app's uninstaller. - Safe next to Mole for Windows: The CLI now installs into
%LOCALAPPDATA%\Programs\mole-cli, andmo removekeeps the Mole for Windows app's license, settings, backups and Start menu entry instead of deleting the shared folder. - Linked folders stay intact: A
node_modulesholding pnpm ornpm linkjunctions is removed as links, so the files they point to are never touched. - Signed and verified: Every script and executable is code-signed, and the analyze and status tools are only used when they match the release checksums.
- Same look as the macOS CLI:
moshows the Mole logo with https://mole.fit/windows, the same five-command menu with M for help, V for version and Q to quit, andmo --helpandmo --versionmatch macOS. - Help and options behave:
mo <command> --helpworks for every command, unknown options are refused instead of running the command, andmo removeasks before removing. - Clean output adds up:
mo cleanno longer prints internal tables, the dry run shows the space it would reclaim with every path inclean-list.txt, error reports and memory dumps are counted once, and~/.gitconfig.lockis left alone.
更新日志
- 预览不会再动任何东西:
mo uninstall --dry-run和mo purge --dry-run现在只列出会发生什么,之前用MOLE_DRY_RUN=1预览卸载时,仍然会真的去运行每个 App 自己的卸载程序。 - 和 Mole for Windows 装在同一台电脑也安全:CLI 改装到
%LOCALAPPDATA%\Programs\mole-cli,mo remove会保留 Mole for Windows 的授权、设置、备份和开始菜单入口,不再把共用的文件夹整个删掉。 - 链接过去的文件夹不会被误删:pnpm 或
npm link生成的node_modules里有 junction 时,只删除链接本身,链接指向的原始文件一个都不碰。 - 签名并校验:所有脚本和可执行文件都做了代码签名,analyze 和 status 下载后必须和发布页的校验和一致才会使用。
- 和 macOS 版长得一样:输入
mo会显示 Mole 的 logo 和 https://mole.fit/windows,菜单同样是五个命令,按 M 看帮助、V 看版本、Q 退出,mo --help和mo --version也和 macOS 一致。 - 帮助和参数都能正常用:每个命令的
mo <命令> --help都能显示帮助,不认识的参数会直接拒绝,不再带着它去执行命令,mo remove也会先问一句再删。 - 清理结果对得上:
mo clean不再打印内部表格,预览会给出能清理出的空间,并把每个路径写进clean-list.txt,错误报告和内存转储只算一次,~/.gitconfig.lock也不再删除。
Install
iwr -useb https://raw.githubusercontent.com/tw93/Mole/windows/quick-install.ps1 | iexAlready installed? Run mo update. The files below are what package managers and mo download; every script and executable is code-signed, and SHA256SUMS.txt lists their checksums.
Mole for Windows
If you would rather work in a window than a terminal, Mole for Windows covers cleaning, app removal and updates, startup items, disk analysis and live status, and shows everything before it deletes. The CLI stays free and open source.