{"id":44652705,"url":"https://github.com/lu-zhengda/updater","last_synced_at":"2026-05-24T02:06:05.339Z","repository":{"id":338491365,"uuid":"1158012077","full_name":"lu-zhengda/updater","owner":"lu-zhengda","description":"macOS app update manager — check and update apps from Sparkle, Homebrew, Mac App Store, and GitHub Releases","archived":false,"fork":false,"pushed_at":"2026-03-02T03:06:35.000Z","size":5525,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-02T03:42:02.226Z","etag":null,"topics":["bubbletea","claude-code","claude-code-plugin","cli","go","homebrew","mac-app-store","macos","package-manager","sparkle","tui","updater"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lu-zhengda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-14T16:54:47.000Z","updated_at":"2026-03-02T03:06:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lu-zhengda/updater","commit_stats":null,"previous_names":["lu-zhengda/updater"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/lu-zhengda/updater","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lu-zhengda%2Fupdater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lu-zhengda%2Fupdater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lu-zhengda%2Fupdater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lu-zhengda%2Fupdater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lu-zhengda","download_url":"https://codeload.github.com/lu-zhengda/updater/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lu-zhengda%2Fupdater/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30236268,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T23:09:55.450Z","status":"ssl_error","status_checked_at":"2026-03-07T23:00:57.737Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bubbletea","claude-code","claude-code-plugin","cli","go","homebrew","mac-app-store","macos","package-manager","sparkle","tui","updater"],"created_at":"2026-02-14T21:14:57.693Z","updated_at":"2026-05-24T02:06:05.329Z","avatar_url":"https://github.com/lu-zhengda.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# updater\n\n[![CI](https://github.com/lu-zhengda/updater/actions/workflows/ci.yml/badge.svg)](https://github.com/lu-zhengda/updater/actions/workflows/ci.yml)\n[![Release](https://github.com/lu-zhengda/updater/actions/workflows/release.yml/badge.svg)](https://github.com/lu-zhengda/updater/actions/workflows/release.yml)\n[![Latest Release](https://img.shields.io/github/v/release/lu-zhengda/updater?sort=semver)](https://github.com/lu-zhengda/updater/releases)\n[![Go Version](https://img.shields.io/github/go-mod/go-version/lu-zhengda/updater)](https://github.com/lu-zhengda/updater/blob/main/go.mod)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/lu-zhengda/updater/blob/main/LICENSE)\n\n`updater` is a macOS CLI/TUI that discovers installed apps, checks for updates across multiple ecosystems, and applies the right update action per app.\n\n## Requirements\n\n- macOS (the one truly non-negotiable requirement)\n- Homebrew (recommended)\n- `mas` for Mac App Store checks (installed automatically with the Homebrew cask)\n\n## Install (Recommended)\n\nInstall from Homebrew tap:\n\n```sh\nbrew install --cask lu-zhengda/tap/updater\nupdater --version\n```\n\nThis is the easiest path and includes `mas` automatically as a cask dependency.\n\nUpgrade later:\n\n```sh\nbrew upgrade --cask lu-zhengda/tap/updater\n```\n\n## Quick Start\n\n```sh\n# 1) Validate environment and dependencies\nupdater doctor\n\n# 2) Discover installed apps and detected sources\nupdater scan\n\n# 3) Check available updates\nupdater check\n\n# 4) Preview update actions without changing anything\nupdater update --all --dry-run\n\n# 5) Apply updates\nupdater update --all\n```\n\nLaunch the interactive TUI:\n\n```sh\nupdater\n```\n\n## What It Supports\n\n| Source | How updates are checked | Update behavior |\n| --- | --- | --- |\n| Sparkle | Appcast feed from app metadata | Direct DMG/ZIP/PKG install when possible, otherwise opens download URL |\n| Homebrew cask | `brew outdated --cask --greedy --json` | `brew upgrade --cask \u003ctoken\u003e` |\n| Homebrew formula | `brew outdated --formula --json` | `brew upgrade \u003cformula\u003e` |\n| Mac App Store | `mas outdated` | `mas upgrade \u003cid\u003e` or opens App Store updates |\n| GitHub Releases | GitHub Releases API | Direct install when possible, otherwise opens release asset URL |\n| Electron generic | `latest-mac.yml` from update server | Direct install when possible, otherwise opens app |\n| Brew-info fallback | `brew info --cask --json=v2` | If brew-installed: `brew upgrade --cask`; otherwise opens app |\n| npm globals | `npm outdated -g --json` | `npm install -g \u003cpkg\u003e@latest` |\n| uv tools | `uv tool list` + PyPI JSON | `uv tool upgrade \u003ctool\u003e` |\n| cargo crates | `cargo install --list` + crates.io API | `cargo install \u003ccrate\u003e` |\n| macOS system | `softwareupdate -l` | Opens Software Update settings |\n\nAlso detected (for visibility): Setapp, JetBrains Toolbox, and Adobe apps.\n\n## Command Guide\n\nCore update workflow:\n\n```sh\nupdater scan\nupdater check\nupdater check --share\nupdater update \"1Password\"\nupdater update --all\nupdater update --all --auto\nupdater update --all --dry-run\n```\n\nScripting/JSON:\n\n```sh\nupdater scan --json\nupdater check --json\nupdater outdated --json\nupdater history --json\nupdater doctor --json\nupdater update --all --dry-run --json\n```\n\nAgent mode:\n\n- All commands support `--json`.\n- When `updater` detects it is running inside Codex or Claude Code, JSON output is enabled automatically.\n- Override behavior with `UPDATER_AGENT_MODE=0` (force off) or `UPDATER_AGENT_MODE=1` (force on).\n- `updater update --json` is supported for dry-run planning (`--dry-run`).\n\nManagement:\n\n```sh\nupdater pin \"Google Chrome\"\nupdater unpin \"Google Chrome\"\nupdater policy \"Google Chrome\" manual\nupdater install firefox\nupdater rollback \"Firefox\"\nupdater cleanup --days 90\nupdater cleanup --days 90 --delete\n```\n\nAutomation:\n\n```sh\nupdater schedule --interval 24\nupdater schedule --remove\n```\n\n## Configuration\n\nConfig file path:\n\n```text\n~/.config/updater/config.yaml\n```\n\nExample:\n\n```yaml\nignored_apps:\n  - com.apple.Safari\n\npinned_apps:\n  - com.google.Chrome\n\n# auto | manual | notify-only\npolicies:\n  com.microsoft.VSCode: auto\n  com.google.Chrome: manual\n\ngithub_mappings:\n  com.microsoft.VSCode: \"microsoft/vscode\"\n\ncask_mappings:\n  com.readdle.PDFExpert-Mac: \"pdf-expert\"\n\ngithub_token: \"ghp_...\"\nmax_concurrent: 10\nmax_backups: 1\ninteractive_notifications: true\n```\n\nNotes:\n\n- `GITHUB_TOKEN` environment variable overrides `github_token`.\n- `cask_mappings` are only needed when automatic cask token detection is wrong.\n- Use `updater config export` and `updater config import \u003cfile\u003e` to move config between machines.\n\n## Safety Model\n\n- `--dry-run` prints the exact planned actions without making changes.\n- Backups are created before install-based updates when app paths are available.\n- Failed direct installs attempt automatic rollback from backup.\n- Pinned apps are skipped in `update --all`.\n- `policy` lets you force per-app behavior (`auto`, `manual`, `notify-only`).\n\n## Build From Source\n\nRequires Go `1.25.7+`.\n\n```sh\ngit clone https://github.com/lu-zhengda/updater.git\ncd updater\nmake install PREFIX=~/.local\n```\n\nIf needed, add to `PATH`:\n\n```sh\nexport PATH=\"$HOME/.local/bin:$PATH\"\n```\n\nIf building from source and you want Mac App Store checks, install `mas`:\n\n```sh\nbrew install mas\n```\n\n## Developer Commands\n\n```sh\nmake build\nmake test\nmake clean\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flu-zhengda%2Fupdater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flu-zhengda%2Fupdater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flu-zhengda%2Fupdater/lists"}