Skip to content

WinClean v2.19

Choose a tag to compare

@bivlked bivlked released this 22 Jul 07:36
· 50 commits to main since this release
52828aa

WinClean v2.19

A contract-correctness and honesty release, following a second external review - this time of the documentation and the repository itself. No new cleanup features. One user-visible behavior change, several places where the script used to report more than it knew, and a full documentation rework so that what is written matches what the code does.

Раунд корректности контрактов и честности отчётов, по итогам второго внешнего ревью - на этот раз документации и самого репозитория. Новых функций очистки нет. Одно изменение поведения, несколько мест, где скрипт рапортовал больше, чем знал, и полная переработка документации, чтобы написанное совпадало с кодом.

Breaking change / Изменение поведения

-SkipCleanup now skips every cleanup category, including developer caches, Docker/WSL and Visual Studio. It previously left those three running, which contradicted both the README ("skip all cleanup") and the "Updates Only" profile. If you relied on the old behavior, use the narrower flags instead: -SkipDevCleanup, -SkipDockerCleanup, -SkipVSCleanup.

-SkipCleanup теперь пропускает ВСЕ категории очистки, включая кэши разработчика, Docker/WSL и Visual Studio. Раньше эти три продолжали работать вопреки README и пресету "Updates Only". Если вы полагались на прежнее поведение, используйте точечные флаги: -SkipDevCleanup, -SkipDockerCleanup, -SkipVSCleanup.

Highlights / Ключевое

Honest reporting / Честность отчётов

  • The result JSON gains a third phase bucket, PhasesSkipped. A phase turned off by a flag used to be counted as completed, which made "everything ran" indistinguishable from "that phase never happened". The three arrays are a dispatch status (invoked, suppressed, threw), they never overlap, and for a run that was not aborted their union is exactly the nine known phases.
  • AppUpdatesCount is renamed to AppUpdatesOffered. winget upgrade --all does not report how many packages it actually upgraded - it silently skips pinned packages, packages without a manifest, and ones where the UAC prompt was cancelled. The only number WinClean honestly knows is how many updates were offered, and the summary now says so: Windows: X installed, Apps: Y offered.

Documentation / Документация

  • The README is rebuilt around a three-tier model: a copy-paste quick start, light explanations, then deep dives. The version badge is now dynamic, so it cannot drift from the actual release again.
  • New docs/ section: the trust and safety model, a full inventory of what is cleaned and what is deliberately preserved, the result-JSON schema, the release process, troubleshooting, FAQ and a comparison page.
  • Accuracy pass over every public claim: updates go through Windows Update and winget (there is no separate Store path), browser cleanup covers seven browsers, -ReportOnly is a behavior preview and not an integrity check of the script, and the restore point is attempted rather than guaranteed.

Infrastructure / Инфраструктура

  • GitHub Actions are pinned to commit SHAs, with Dependabot keeping them current.
  • The release gate and CI now run the same lint script, with the same file list, the same rules and the same pinned analyzer version. They had drifted apart, and the weaker gate reported green while CI was red.
  • The nightly VM matrix gained a dead-man heartbeat (a night with no run is no longer indistinguishable from a healthy one) and a pass against the published release, so a broken release with a healthy main is caught.

Under the hood / Под капотом

  • 309 to 376 automated tests, covering the phase tri-state and its invariant, the -SkipCleanup group contract, the offered-versus-installed honesty, the parameter parity between get.ps1 and the script, and new documentation guards.

Full detail: CHANGELOG.md

Install / Установка

Run once (preview, no changes) / Разовый запуск (предпросмотр, без изменений):

irm https://raw.githubusercontent.com/bivlked/WinClean/main/get.ps1 | iex

Install with a desktop shortcut (elevated terminal) / Установка с ярлыком (терминал администратора):

irm https://raw.githubusercontent.com/bivlked/WinClean/main/install.ps1 | iex

Both verify the download's SHA256 against the published hash before running anything.
Оба сверяют SHA256 загрузки с опубликованным хешем перед запуском.