Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Say in the guide and the changelog how long Homebrew's answer counts

Țugui Dragoș8bcf6d529045
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md
index 0820ffa9..74419a3a 100644
--- a/ARCHITECTURE.md
+++ b/ARCHITECTURE.md
@@ -325,11 +325,15 @@ macOS asks the user to approve it once. It talks to the app over XPC.
settings from. It asks on its own only while Check for app updates is on (`OwnUpdateCheck`), and the update
round of the other apps passes over Peel.
- **Updates of other apps.** `UpdateChecker` asks each app's own feed, or the App Store about an app from the App
- Store, and uses what Homebrew knows for an app a cask installed. From the App Store it reads the listing of the
- installed bundle (`AppStoreListing`): the Mac's, which Apple gives for the desktop, also for an app sold once for
- iPhone and Mac, or the iPhone and iPad one for an app of those devices installed on the Mac. Every answer that
- changes nothing makes the next check of that app wait longer, up to a week (`UpdateSchedule`), and `UpdateMemory`
- keeps the last answer across launches.
+ Store, and uses what Homebrew knows for an app a cask installed, an "up to date" only for a day after Homebrew
+ last checked for new versions (`Homebrew.lastUpdateCheck`, the time of `.git/FETCH_HEAD` in its repository, which
+ Homebrew itself compares before updating on its own). What Homebrew's casks and the app's own files decide without
+ a server (`statusWithoutAsking`) shows as soon as Homebrew is read, and again at every round, and Peel reads
+ Homebrew again once it has checked since. From the App Store it reads the listing of the installed bundle
+ (`AppStoreListing`): the Mac's, which Apple gives for the desktop, also for an app sold once for iPhone and Mac,
+ or the iPhone and iPad one for an app of those devices installed on the Mac. Every answer that changes nothing
+ makes the next check of that app wait longer, up to a week (`UpdateSchedule`), and `UpdateMemory` keeps the last
+ answer across launches.
- **Orphaned Files.** `OrphanScanner` lists what no installed app claims, under the app Peel saw go when it can
name it (`AppMemory`), and selects nothing for the person.
- **Resetting an app.** `AppReset` selects an app's settings, caches, and window state, which the app makes again
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cc0ff073..96293ccd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -63,6 +63,8 @@ its changes the way [Keep a Changelog](https://keepachangelog.com/) suggests.
#### Applications
- Rescan asks about every app's updates again at once, whatever each one's schedule says.
+- Peel reads Homebrew again once Homebrew has checked for new versions since Peel last read it, as after `brew update`
+ in Terminal.
- A folder named like the app without the word of its release channel, as Zed Nightly keeps its settings in `zed`, is
shown for review and never selected, and Orphaned Files counts it as the installed channel's.
@@ -120,6 +122,10 @@ its changes the way [Keep a Changelog](https://keepachangelog.com/) suggests.
check for updates" while the App Store listed their updates.
- An update from the App Store stays when a later answer, from a copy of Apple's catalog that isn't up to date yet,
names an older version.
+- An app only Homebrew can answer for, such as Visual Studio Code, no longer reads "Up to date" on what Homebrew knew
+ days before: what Homebrew says counts for a day after it last checked for new versions, and the app's page then says
+ when that was and that Update Homebrew lets Peel tell again. `peel updates` says it too.
+- An update Homebrew learns of shows at once, also for an app it had called up to date.
- A folder named like the app is no longer selected while another app's name holds that name, as Epic Games Launcher
holds Epic: it is listed as also used by that app.
- An app whose identifier a tool wrote for it, such as Electron's `com.electron.<name>`, no longer lists every other
diff --git a/GUIDE.md b/GUIDE.md
index 125a9f57..7729eb68 100644
--- a/GUIDE.md
+++ b/GUIDE.md
@@ -73,10 +73,13 @@ and how to get it, [SAFETY.md](SAFETY.md) what it protects, [PRIVACY.md](PRIVACY
- **Updates for your apps.** Peel checks your apps for new versions, through the update feed each app names, the
App Store for apps bought there, iPhone and iPad apps on the Mac included, or Homebrew for apps it installed, as
Prefer updates from in Settings > General chooses, and shows what is new in the version that waits, as the app's
- own notes say it, even with no connection. Rescan in Applications asks about every app again at once. Skip This
- Version and Never Check This App keep it quiet about the ones you want left alone, and Settings > General lists
- them under Muted Updates, where Check Again brings their updates back. Turning off Check for app updates there
- stops the checks.
+ own notes say it, even with no connection. What Homebrew says counts for a day after it last checked for new
+ versions, the time Homebrew itself waits before it checks again. Past that, an app only Homebrew can answer for
+ reads Can't check for updates until Homebrew checks again, with Update Homebrew on the Homebrew page or
+ `brew update` in Terminal, and Peel reads Homebrew again once it has. Rescan in Applications asks about every app
+ again at once. Skip This Version and Never Check This App keep it quiet about the ones you want left alone, and
+ Settings > General lists them under Muted Updates, where Check Again brings their updates back. Turning off Check
+ for app updates there stops the checks.
## Free up disk space
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/DocumentationTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/DocumentationTests.swift
index 3c11aaf7..388caf7a 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/DocumentationTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/DocumentationTests.swift
@@ -39,6 +39,7 @@ struct DocumentationTests {
let minutes = Int(SpaceRemoval.stillInUse / 60)
let days = Int(ProjectArtifacts.recentlyActive / (24 * 60 * 60))
#expect(Installers.stillDownloading == 24 * 60 * 60, "the documents say a download that changed in the last day")
+ #expect(Homebrew.autoUpdateInterval == 24 * 60 * 60, "the documents say what Homebrew says counts for a day")
let said = [
("GUIDE.md", "comes with \(themes) dark themes"),
("TERMINAL.md", "\(themes) dark themes"),