Skip to content

Mac Cleaner v0.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 21 Nov 15:01

Added

  • In-app updates. Mac Cleaner > Check for Updates… and an automatic check (at launch after a short delay, then at most once a day; Settings > Updates > Automatically check for updates, on by default) ask GitHub for the latest release. A newer version opens a window with current → new, the release notes as plain text and Install Update, Later and Skip This Version. Installing downloads the release zip, verifies its size and SHA-256, unpacks it in a private folder next to the app, verifies the code signature (Developer ID, Team 35MD9KJ7ZQ, bundle id, all nested code, strict), the version and the Gatekeeper notarization assessment, swaps the verified bundle in atomically, relaunches, shows "Updated to X" and removes the backup once the new version runs (the old version is put back if it does not start). It never installs or relaunches during a clean, never runs in development or ad-hoc builds, and refuses (with a Download manually link) for an app on a disk image, a read-only volume, an App Translocation path or a folder you cannot write to. See README "Updates" and SECURITY.md "Updater".
  • mac-cleaner update --check [--json] reports whether a newer release exists (exit code 0 up to date, 10 newer version exists, 1 check failed). It installs nothing.
  • Update attempts (versions and result) are logged to updates.jsonl next to the audit log.
  • Mock mode (debug builds) can show the update prompt, progress, result and failure windows (MACCLEANER_SHEET=update|updating|updateverifying|updatewaiting|updated|uptodate|updatefailed|updatedev).
  • The cleaning overlay shows every planned item with a status icon (waiting, working, done, failed, skipped), its size, and follows the item being worked on. One summary line reads "12 of 40 items · 3.2 GB of 9.8 GB freed · 0:42 elapsed · about 1 min left" (the time left is smoothed, and hidden for the first seconds, while a command runs, and when nothing has moved for a while).
  • The result sheet counts done / failed / skipped items and lists each one that was not removed with its reason. A stopped run reads "Stopped — 14 of 40 items removed".
  • Engine API (additive): CleanItemEvent, CleanItemState and CleanItemReason (typed reasons instead of message text), CleanerEngine.clean(...itemEvents:) and delete(...itemEvents:) (one event per item when it is queued, starts and ends; never per file), CleanResult.items, DeleteProgress.phase (removing or command(name)) and displayFraction. The mock engine emits the same events. --json output is unchanged.
  • CLI on a terminal: the progress line shows the amount of the total, the time left, and what a running command is, and a clean ends with a list of the items that failed or were skipped and why. Piped output keeps its shape.
  • Apps: approximate "last activity". When Spotlight has no launch date, the Apps screen shows ≈ <date>, the newest change time among the app's own data files (Preferences plist, Container, Caches, Saved Application State; reverse-DNS bundle ids only, read-only, no new permissions), with a tooltip saying it is an estimate. It never counts an app as unused. Additive fields: InstalledApp.lastActivity (in apps --json, under app) and last_activity_estimate in the MCP list_apps result; mac-cleaner apps prefixes it with ≈.

Changed

  • The Repos scan is much faster and its rows appear at once. The list shows every working copy as soon as the folder walk has found it (grouped by repository, with remembered sizes where they are still valid and "checking…" / "measuring…" in place of the rest), and the branch, changes, unpushed commits, stash and last commit fill in as git answers, before any size is measured. Sizes are measured at the same time, a few folders at a time, in parallel with git, instead of before it. Copies that exist more than once come first. On a 119-clone home folder under heavy load the complete scan went from 160 s to about 65 s with nothing remembered, and from 40 s to 15 s with sizes remembered; the first rows show after about 2 s.
  • Fewer git processes per working copy: one git status --porcelain=v2 --branch gives the branch and the changes together, the stash is read from the ref files, and the second pass for ignored files is skipped when nothing could ignore a file (no .gitignore, no info/exclude, no global ignore file). Up to 8 git processes run at once (4 when the machine is busy), at low priority. Anything unclear still counts as "not backed up".
  • A copy cannot be selected, allowed or removed while its row is a placeholder; nothing about git state is remembered between scans, and every removal still re-inspects the copy right before acting.
  • Quitting the app while an update is being swapped in now waits (up to 3 minutes) for the swap and its checks to finish, instead of ending the process half way.
  • Apps: the column is now "Last used", fits at the default window width (it was clipped), and "unknown" and "no record" are one label, "no record" (the tooltip says what is known). The README now opens with the pitch, a screenshot, a three-line install block, a short comparison table and a refreshed screenshot set (mock data).
  • Repos: the "Allow removal" checkbox and the size column no longer shift from row to row.

Added (diagnostics)

  • mac-cleaner repos --timings (hidden) or MAC_CLEANER_TIMINGS=1 prints how long each phase of the scan took to stderr. MAC_CLEANER_GIT_JOBS and MAC_CLEANER_SIZE_JOBS override the concurrency for measuring.

Fixed

  • The clock, bar and path in the cleaning overlay no longer freeze during a long command, one huge file or a move to the Trash; the clock is driven by a timer of its own.
  • While a helper command (brew cleanup, docker ..., simctl ...) runs, the overlay says "Running — this can take a few minutes" with an indeterminate bar instead of a stale path. Stop terminates the command; what it already removed stays removed.
  • Moving to the Trash no longer sits at 0 % and then jumps: the bar uses the scanned sizes of the items moved so far, and is indeterminate when one item is moved as a whole.
  • Checking which items are gone after a clean no longer runs on the main thread, so the window does not stall after big deletions.
  • mac-cleaner --help (and -h) prints the top-level help instead of the help of scan.

Signed and notarized. This build is signed with a Developer ID and notarized by Apple.

SHA-256 checksums are in SHA256SUMS.