全部软件
auto-brewUtilities
版本
v2.5.4
发布日期
2026-10-15
平台
macOS · Windows
安装包大小
macOS 5.7 MB · Windows 5.3 MB
发布者
marcelrgberger
Utilities · marcelrgberger

auto-brew

A native macOS menu bar app that automatically keeps Homebrew and all installed packages up to date — silently, in the background.

版本 v2.5.4
macOS · Windows

README

AutoBrew

A native macOS menu bar app that automatically keeps Homebrew and all installed packages up to date — silently, in the background.

Safe by design. When you install AutoBrew via the official channels — the DMG from GitHub Releases or brew install --cask autobrew from the Homebrew tap — every release is built with Apple's Developer ID certificate, notarized by Apple, and stapled before it ships. macOS Gatekeeper accepts AutoBrew without warnings. The auto-update channel is signed with an EdDSA Ed25519 key — AutoBrew refuses to install an update whose signature doesn't verify. Source is open under the MIT License, no telemetry, no AutoBrew backend, no account — everything runs locally on your Mac.

Install — Homebrew (recommended)

brew tap marcelrgberger/tap
brew install --cask autobrew

Other ways to install (manual DMG, requirements) are covered in the Install section below. The cask submission to the official Homebrew/homebrew-cask catalog is prepared under docs/homebrew-cask-submission/ — once merged upstream, the recommended install reduces to brew install --cask autobrew without the brew tap … line.

Release notes for every version live in CHANGELOG.md — the same body is shown in Sparkle's update dialog and on the GitHub release page.

Table of Contents

Features

  • Automatic Updates — Runs brew update → policy gate → selective brew upgrade → brew cleanup once daily
  • Selective Update Policy — Per-bump-type and per-package rules: patches roll out fast, minors wait a configurable cool-off, majors require explicit approval
  • Pre-Upgrade Auto-Snapshots — Before every auto-installed cask upgrade, AutoBrew snapshots the app's user data so a broken update can be rolled back with one click from the new History view
  • Update History, Rollback & Auto-Retry — Every auto-upgrade is logged with a per-cask outcome; rows with a live snapshot roll back in one click (optionally per component), and failed cask upgrades retry automatically after 1 h, 4 h and 12 h (at most three retries, decided by the newest attempt per cask)
  • BrewStore — Full Homebrew cask catalog with Discover sections, curated categories, global search, download size before install, installed-app management and inline GitHub release notes for pending approvals
  • AppSnapshot — Capture, restore, compare and export an app's user data; migrate a whole Mac with an .autobrewbundle; optionally store snapshots on an external drive
  • Collections, Doctor, Orphans — Install or uninstall named sets of casks in one go, read brew doctor findings grouped by severity, and remove orphaned formulae
  • Pre-Snapshot Hooks — Optional per-cask shell command that runs right before the pre-upgrade snapshot
  • Disk-Pressure Guard — Skips the pre-upgrade snapshot when the snapshot storage volume is below a configurable free-space threshold
  • Shortcuts, Siri and Spotlight — Install Cask / Snapshot App / Roll Back Last Upgrade actions via the system AppIntents framework
  • Desktop & Notification-Center Widget — Status widget in three sizes (Small / Medium / Large) with pending-approval count, recent upgrade outcomes, a Run Now link and a one-tap roll back for the latest failed cask
  • autobrew CLI & URL Scheme — autobrew open / install / rollback / run-now from the terminal, relayed through the autobrew:// URL scheme
  • In-App Legal Section — Eleven documents (Privacy Policy, California Notice at Collection, Terms of Use, EULA, Legal Framework Overview, Support and Update Policy, Security Information, Vulnerability Disclosure, Imprint, Trademark, Open-Source Licenses) in a dedicated Legal window
  • Idle-Based Trigger — Waits for configurable idle time before running (default: 30 min)
  • Scheduled Trigger — Alternatively, run at a fixed time of day
  • Works While Locked — Uses IOKit idle detection, independent of screen lock state
  • Missed Run Recovery — If the Mac was asleep during a scheduled run, prompts the user on wake
  • Outdated Package List — Shows outdated formulae and casks with current and available versions
  • Homebrew Auto-Install — Installs Homebrew automatically if not present (guided onboarding)
  • Login Item — Starts automatically with the system via SMAppService
  • Auto-Updates — Keeps itself up to date via Sparkle
  • 8 Languages — English, German, French, Italian, Dutch, Polish, Portuguese (Brazil), Spanish

Quick Start

  1. Install AutoBrew via Homebrew: brew tap marcelrgberger/tap && brew install --cask autobrew
  2. Launch AutoBrew once from /Applications. The mug icon appears in the menu bar.
  3. If Homebrew isn't on your Mac yet, the onboarding screen installs it for you.
  4. Grant the notification permission when prompted — it's how AutoBrew tells you when an update needs approval.
  5. Click the menu-bar mug → Settings… to pick a trigger mode (Idle or Scheduled) and review the default update policy.
  6. That's it — AutoBrew runs in the background. Open it any time from the menu bar to inspect outdated packages, browse the BrewStore, or review pending approvals.

User Guide

A walkthrough of every feature, in the order you'd typically encounter them.

First Launch

On every launch AutoBrew asks for the notification permission (macOS shows the prompt only once). AutoBrew uses local notifications for completion, missed-run, pending-approval and low-disk alerts; they're never sent over a network.

The first time you open the menu-bar popover it shows a three-step onboarding flow instead of the normal menu:

  1. Welcome — a Launch at Login toggle, on by default. Wires up SMAppService so AutoBrew restarts automatically with macOS. You can change it later in Settings.
  2. Homebrew check — if brew is missing, the onboarding offers to run the official installer non-interactively (NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"). An install error is shown inline with a Try Again button.
  3. Done — Get Started marks onboarding as completed and starts the scheduler.

Onboarding only runs once (the onboardingCompleted flag in the preferences). To re-trigger it manually, remove ~/Library/Preferences/za.co.digitalfreedom.AutoBrew.plist and relaunch.

The Menu Bar

Clicking the mug icon opens a compact popover:

  • Status — idle / waiting / scheduled / running stage / completed / failed, plus the time of the last run.
  • Outdated list — up to five outdated packages with current → new version, and a "+ N more" line.
  • Update Now — runs the full brew update → policy gate → upgrade → cleanup pipeline immediately.
  • Check Outdated Packages — refreshes the list via brew outdated.
  • Show Log — the output of the last run (only shown once there is output).
  • BrewStore — opens the BrewStore window.
  • Settings… — Settings and the log open as pages inside the popover rather than as separate windows.
  • The detected brew path (or "Homebrew not installed") and Quit.

Next to the mug the icon shows one small badge. While a run is in progress, after it completed and after it failed, that is a status symbol (rotating arrows, checkmark, exclamation mark); the completed or failed badge stays until the next run starts or the scheduling restarts (a change to the trigger settings, or a relaunch). Only when no such status is shown does a small orange dot signal updates waiting for approval.

Seven days and again 90 days after the first launch, the popover shows a one-time sheet asking whether you'd like to star the repository or sponsor the project. Postponing dismisses that stage; confirming that you already support the project stops the prompts for good.

Choosing an Update Trigger

Settings → Update Trigger picks how AutoBrew decides to run:

  • Idle mode (default) — polls system idle time every 60 s and starts a Brew run after the user has been idle for at least N minutes (configurable, default 30). Runs at most once per calendar day. Idle detection reads HIDIdleTime from IOHIDSystem via IOKit, so it works even while the screen is locked.
  • Scheduled mode — runs at a fixed time of day (configurable). If the Mac was asleep at the scheduled time, AutoBrew triggers a missed-run notification on wake instead of silently skipping.

Switch between modes at any time. The scheduler restarts cleanly when you do.

Configuring the Update Policy

Settings → Update Policy has six pickers (patch / minor / major × Casks / Formulae) plus per-package overrides. Each picker accepts one of four policies:

Policy Behaviour
Auto Install on the next scheduled run.
Wait N days Install only after the new version has been visible for at least N days. Cool-off resets when a newer version supersedes the pending one.
Ask me Don't install — surface the update in the Pending Approvals section instead.
Skip Never install for this bump type.

The default profile is conservative: patches roll out quickly, minors get a cool-off window, majors always wait for the user. Defaults differ between Casks and Formulae because Formulae carry security patches more often.

For one specific package, open it in the BrewStore detail view and click Update Policy. The override sheet lets you set patch/minor/major independently; leaving a row on Default inherits the global setting. The same sheet also carries an optional Pre-snapshot command (/bin/bash -c <command>) that runs right before the pre-upgrade snapshot of this cask — handy for flushing in-memory app state (osascript-driven