Menu Close

App Auto-Patch (3.6.0 → 3.7.0)

App Auto-Patch deferral dialog on a macOS desktop, listing two pending app updates with Install Now and Defer options.

From quieter fleets to smarter dialogs: App Auto-Patch’s 3.6 and 3.7 releases bring background patching of closed apps, update staging, Business Hours, banner notifications, an in-process Pending Apps Dialog, a much leaner VerboseMode logging story, plus stale-process recovery and smarter Dock Quit handling — without giving up the set-it-and-forget-it LaunchDaemon workflow Mac Admins already know.


Overview

App Auto-Patch (AAP) inventories installed applications with Installomator, then patches them through swiftDialog-backed prompts — MDM-agnostic, LaunchDaemon-driven, and configurable via managed preferences or CLI.

Since 3.6.0, the project has focused on making day-to-day fleet patching less noisy for users and more controllable for admins:

  • Silently patch apps that aren’t open, then only ask about the ones that are
  • Pre-stage installers so “Install Now” feels nearly instant
  • Respect business / do-not-disturb hours — or keep discovering / silently patching during them
  • Surface queued updates with banner notifications and a dedicated pending-apps dialog
  • Keep aap.log clean while making aap_verbose.log an opt-in troubleshooting transcript
  • Recover hung runs instead of silently blocking the LaunchDaemon forever

This post summarizes what’s new from 3.6.0 through 3.7.0, then walks through implementing AAP in a fleet using accordion-style steps you can expand as you go.

Full release notes live in the repo: CHANGELOG.md · Wiki


🆕 3.7.0 Highlights

  • Business Hours — Block interactive discovery / dialogs / patching during configured weekday windows (MON:09:00-17:00,…). Optional Silent During (closed-apps only) and Allow Discovery modes. Install-now / pending-apps / preview dialogs intentionally bypass. (#166)
  • Pending Apps Dialog — Near-instant list of queued updates from the report PLIST (no discovery). Install Now patches exactly that queue in-process and goes straight to the install dialog. Later (and --preview-deferral-dialog) leave the existing NextAutoLaunch schedule alone. CLI: --pending-apps-dialog. Also used by queued-app notification Install Now.
  • Banner Notifications — Non-persistent swiftDialog banner alerts for silent updates and queued apps, with Install Now / Dismiss actions (requires notification approval for Dialog’s helper apps).
  • Dock Icon — Workflow dialogs can show the AAP logo in the Dock (swiftDialog 3.0+), with pending / remaining badges. Dock Quit reopens deferral instead of forcing install. Discovery/staging Dock Quit follows DialogQuitHandlingDiscoveryStaging (PROMPT / CONTINUE / STOP, default Prompt). Stop is ignored after a hard deadline or during Install Now so users can’t defer past the cap.
  • Stale-process recovery — Heartbeat + PID identity checks recover hung AAP runs with TERM then KILL. Staging downloads abort if they transfer no data. Admin escape hatch: sudo appautopatch --stop (preserves NextAutoLaunch). Tune with StaleProcessTimeoutSeconds (default 3600; 0 disables timeout-based killing).
  • Skip Pre-Update Verification — Opt out of flaky local spctl / Team ID discovery checks while Installomator still validates post-download. (#256)
  • Pre / Post Patch Scripts — Managed, root-owned hooks under /Library/Management/AppAutoPatch/Hooks/ (e.g. jamf recon). (#156)
  • Excluded Background Labels — Discover and report apps that shouldn’t update on silent / background-patch runs; interactive Install Now remains the escape hatch. (#238)
  • GitHub API Auth — Optional PAT for api.github.com so large fleets stay under rate limits. (#249)
  • Mosyle MDM support — Enrollment detection, webhook deep-links, Self Service overlay preference. (#240)
  • Cleaner, faster logging — VerboseMode fully gates aap_verbose.log; [VERBOSE] never pollutes aap.log; cached log identity + open FDs; no more duplicate VERBOSE lines.
The new Pending Apps Dialog lists exactly what’s queued from the report PLIST — Install Now patches that set in-process, no re-discovery.
The new Pending Apps Dialog lists exactly what’s queued from the report PLIST — Install Now patches that set in-process, no re-discovery.
App Auto-Patch banner notification: one app updated in the background, two open apps remain queued.
Non-persistent banner notifications surface silent background updates and remind users about apps still queued — with Install Now / Dismiss actions.

3.6.x Highlights

3.6.0

⚠️ Before you upgrade: Background Patch Closed Apps is enabled by default under InteractiveMode 1 and 2. If you’re not ready for silent closed-app patching, set WorkflowBackgroundPatchClosedApps to false before deploying.

  • Background Patch Closed Apps — After discovery, silently update apps that aren’t open; only open / blocked apps hit the deferral dialog
  • Update Staging — Pre-download installers so later installs reuse local copies (WorkflowStageUpdates)
  • Discovery Frequency — Skip re-scanning within N hours; one-shot --force-discovery when you need a fresh scan
  • Ignore DND Apps — Don’t let always-on display assertions (Logi Options+, Amphetamine, …) block interactive patching forever (#149)
  • Update queue reporting — xyz.techitout.appAutoPatchReport.plist with a Munki-style ItemsToInstall array
  • Root3 Support App extension — Pending-count tile + pending-apps / install-now click handlers
  • Version details in dialogs — “Current → New” under each app name
  • Banner images — Custom banner image / URL / colour / gradient on patching & deferral dialogs
  • Install Now confirmation — Short confirm prompt before the deferral dialog’s Install Now proceeds
  • Signed & notarized .pkg on every GitHub Release

3.6.1 / 3.6.2 (selected fixes)

  • Fully-silent / kiosk runs correctly skip Dock wait and swiftDialog install checks
  • Self-update prefs resolved before the self-update check (so managed SelfUpdateEnabled=false actually sticks on first run)
  • Overlay icon selection hardened for Self Service / Self Service+ (no more blank badges from stale paths)
  • Installer .pkg now carries real version numbers (fixes Intune “version 0” replace failures) and declares universal architectures (no bogus Rosetta prompt)
  • Monthly cadence no longer gets accidentally shortened when AAP is re-triggered after a completed cycle

Features (the bigger picture since 3.6)

  • Quieter by default — Closed apps update in the background; users only see apps that need their attention
  • Faster when they say yes — Staging + report-locked pending-apps Install Now skip redundant discovery / prep work
  • Schedule-aware — Business Hours, monthly cadence, deferral deadlines, and Discovery Frequency work together instead of fighting each other
  • Visible when you need it — Banner notifications, Dock badges, Support App tile, and pending-apps dialog
  • Operable at scale — Managed preferences, Jamf schema / iMazing manifests, GitHub API auth, pre/post hooks, receipts + report PLIST, and an admin --stop / stale-process recovery path
  • Debuggable without drowning — aap.log for operations; aap_verbose.log only when VerboseMode is on
App Auto-Patch Dock icon showing a pending-updates badge alongside other Dock apps.
Workflow dialogs can pin the App Auto-Patch icon to the Dock with pending / remaining badges (swiftDialog 3.0+).


Implementation

Jumpstart your App Auto-Patch rollout by testing locally first, then deploying via MDM with a managed preference profile. Expand each section below as you go.

1. Local Testing

Test on a non-production Mac with swiftDialog available (AAP can install/update Dialog when a user session is present). Use --debug-mode so nothing is actually patched while you explore the UI.

  1. Download the latest release from GitHub Releases (script or signed .pkg).
  2. In an elevated Terminal session, make the script executable and run it in debug mode:
    sudo chmod a+x ~/Downloads/App-Auto-Patch-via-Dialog.zsh
    sudo ~/Downloads/App-Auto-Patch-via-Dialog.zsh --debug-mode
    
  3. AAP installs itself under /Library/Management/AppAutoPatch/ the first time it runs from outside that folder, then starts the workflow.
  4. After install, drive it like any CLI tool:
    sudo appautopatch --usage
    sudo appautopatch --preview-deferral-dialog
    sudo appautopatch --workflow-install-now --debug-mode
    sudo appautopatch --pending-apps-dialog
    sudo appautopatch --stop
    
  5. Review logs:
    tail -f /Library/Management/AppAutoPatch/logs/aap.log
    # For deep troubleshooting only:
    sudo appautopatch --verbose-mode
    tail -f /Library/Management/AppAutoPatch/logs/aap_verbose.log
    sudo appautopatch --verbose-mode-off
    
  6. Useful one-shots while iterating on dialogs (skips a long discovery scan):
    sudo appautopatch --debug-mode --workflow-disable-app-discovery
    

Tips

  • Flags like --debug-mode persist in the local prefs PLIST until you turn them off.
  • Disable without uninstalling: sudo appautopatch --workflow-disable-relaunch --reset-defaults
  • Uninstall: sudo appautopatch --uninstall
  • If a run appears stuck, sudo appautopatch --stop ends it without discarding the next scheduled launch. Avoid running an older copy of the script from Downloads — that reinstalls over the live copy under /Library/Management/AppAutoPatch/.
Install progress once the user clicks Install Now — apps update in sequence with a live progress bar.
Install progress once the user clicks Install Now — apps update in sequence with a live progress bar.

2. MDM Deployment

Pick PKG (signed & notarized on every release) for standard fleets, or Script deployment when you need to customize the script itself. Configure behavior with a managed preference profile — not Jamf script parameters.

  1. Choose a deployment method — see the wiki: Deployment Methods.
  2. Build a configuration profile for domain xyz.techitout.appAutoPatch:
  3. Deploy to a single test Mac:
    • The AAP .pkg or a policy/script that runs the .zsh once as root
    • Your managed preference profile → /Library/Managed Preferences/xyz.techitout.appAutoPatch.plist
    • (Recommended on macOS 13+) a Managed Login Item profile so users can’t unload the LaunchDaemon — example in Resources/
  4. If you use Banner Notifications, also deploy a com.apple.notificationsettings profile approving:
    • au.csiro.dialog.notifier.banner
    • au.csiro.dialog.notifier.alert
    • au.csiro.dialog (swiftDialog 3.0 and earlier)
  5. Kick the tires on the test Mac:
    sudo appautopatch --workflow-install-now
    sudo appautopatch --pending-apps-dialog
    plutil -p /Library/Managed\ Preferences/xyz.techitout.appAutoPatch.plist
    tail -100 /Library/Management/AppAutoPatch/logs/aap.log
    
  6. Widen scope once deferrals, labels, Business Hours, and notifications look right.

3. Recommended Starting Configuration

Every fleet is different — treat this as a sensible baseline for InteractiveMode 2 (full interactive) environments, then tighten.

<!-- Conceptual keys for xyz.techitout.appAutoPatch -->
InteractiveMode                        = 2
WorkflowBackgroundPatchClosedApps      = true   <!-- default in 3.6+; set false if not ready -->
WorkflowStageUpdates                   = true
DiscoveryFrequency                     = 24
BusinessHours                          = MON:09:00-17:00,TUE:09:00-17:00,WED:09:00-17:00,THU:09:00-17:00,FRI:09:00-17:00
BusinessHoursSilentDuring              = true   <!-- discover + silent-patch closed apps during hours -->
ShowNotificationsAll                   = true
ShowDockIcon                           = true
DialogQuitHandlingDiscoveryStaging     = PROMPT <!-- Keep Running vs Stop; Stop ignored after hard deadline -->
StaleProcessTimeoutSeconds             = 3600   <!-- 0 disables timeout-based recovery -->
VerboseMode                            = false  <!-- enable only while troubleshooting -->
IgnoredLabels                          = "microsoft* googlechrome* jamfconnect zoom* swiftdialog"
ExcludedBackgroundLabels               = "python* nodejs* amazoncorretto*"

Why these defaults?

  • Background patch + staging — Users see fewer dialogs; when they do click Install Now, downloads are often already local.
  • DiscoveryFrequency 24 — Deferrals during the day don’t re-scan the whole app inventory every time.
  • BusinessHours + SilentDuring — Keep the fleet moving during the workday without interactive prompts; remaining open apps wait until hours clear (or the user hits Install Now from a banner / pending-apps dialog).
  • VerboseMode off — As of 3.7.0, nothing is written to aap_verbose.log unless VerboseMode is on. Turn it on only when investigating.
  • PROMPT Dock Quit — Users can stop a discovery/staging window until the next scheduled run, but not after a hard deadline or during Install Now.

Validate branding / deferral layout without patching:

sudo appautopatch --preview-deferral-dialog
App Auto-Patch deferral dialog with the defer duration menu open, showing options from 30 minutes to several days.

The deferral dialog’s snooze menu — users can postpone from 30 minutes up to a few days, within the deadlines you configure.

4. Upgrading from 3.5.x → 3.6 / 3.7
  1. Read the 3.6.0 upgrade callout — WorkflowBackgroundPatchClosedApps defaults to true. Explicitly set it false in the managed profile if you need the old “always ask” behavior.
  2. Deploy the new .pkg / script and refresh your configuration profile so new keys (Business Hours, notifications, ExcludedBackgroundLabels, Dock Quit handling, stale-process timeout, etc.) exist with intentional values.
  3. If you use Jamf Application & Custom Settings, re-import the updated schema from Resources/Manifests/ (3.6.1 fixed VersionComparisonMethod casing; 3.7 adds pending-apps language keys plus display_string_preparationdismissed_*, DialogQuitHandlingDiscoveryStaging, and StaleProcessTimeoutSeconds).
  4. After upgrade on a pilot Mac, confirm:
    • LaunchDaemon still loaded
    • aap.log looks healthy without VERBOSE spam
    • Report PLIST / Support App count match what users see
    • Business Hours defer / silent-during behavior matches your windows
    • /var/run/aap.heartbeat updates while a run is healthy; sudo appautopatch --stop clears a hung process
  5. Optional: enable SelfUpdateEnabled so pilots pull newer builds on your chosen frequency — or keep it off and drive versions only via MDM.

5. Resources & Troubleshooting

Docs

A Support App dashboard surfacing the App Auto-Patch tile — here showing “2 Updates Pending” for the end user.
A Support App dashboard surfacing the App Auto-Patch tile — here showing “2 Updates Pending” for the end user.

Quick troubleshooting (elevated Terminal)

# Managed prefs present?
plutil -lint /Library/Managed\ Preferences/xyz.techitout.appAutoPatch.plist
plutil -p   /Library/Managed\ Preferences/xyz.techitout.appAutoPatch.plist
# Local prefs / next launch
defaults read /Library/Management/AppAutoPatch/xyz.techitout.appAutoPatch
# LaunchDaemon
launchctl print system/com.techitout.App-Auto-Patch 2>/dev/null | head
# Hung run? PID + heartbeat, then stop without losing the schedule
cat /var/run/aap.pid /var/run/aap.heartbeat
sudo appautopatch --stop
# Operational log vs verbose transcript
tail -100 /Library/Management/AppAutoPatch/logs/aap.log
sudo appautopatch --verbose-mode   # only while investigating
tail -100 /Library/Management/AppAutoPatch/logs/aap_verbose.log
# What’s queued right now?
plutil -p /Library/Management/AppAutoPatch/xyz.techitout.appAutoPatchReport.plist
sudo appautopatch --pending-apps-dialog

Support

Community, best-effort support is available on the Mac Admins Slack in #app-auto-patch, or open an issue on GitHub.

Thanks to everyone who has contributed — including Dan Snelson, Andrew Clarke, Andrew Barnett, Trevor Sysock, Bart Reardon, Charles Mangin, Gil Burns, and the Installomator team.

Huge thanks to Rob Schroeder for allowing me to collaborate on such an awesome project. I’m excited to see how far we can take this!

1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *