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 all that Installers and Backups suggests, lists, and how

Țugui Dragoșc43e39e8bbd9
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md
index b3070fa6..322d9b46 100644
--- a/ARCHITECTURE.md
+++ b/ARCHITECTURE.md
@@ -386,6 +386,15 @@ macOS asks the user to approve it once. It talks to the app over XPC.
(`FoldersLeftToDeveloper`) kept out, and macOS's own held back or not listed at all; the move asks again which apps
are open (`movableNow`). An area only its own app or tool should empty is explained, with that app's or tool's own
step.
+- **Installers and Backups.** `Installers.scan` looks in Downloads, Desktop, Documents, Public, and `/Users/Shared`,
+ and in the folders directly inside them, for disk images, packages, archives that hold an app or an installer (a
+ zip is looked into), downloads a browser never finished, and device firmware, then at the macOS installers there and
+ in `/Applications`, the updates Sparkle, Squirrel, and electron-updater keep until they install them, the packages
+ apps keep in Application Support, and, with Full Disk Access, the device backups, which it only lists. What is smaller
+ than `minimumSize` isn't listed, a backup whatever its size. What it suggests can be downloaded again: an installed
+ app's installer, one in Downloads, a macOS installer, firmware, a browser's unfinished download a day after its last
+ change, and an update whose app is closed. The rest is held back, such as what changed in the last day, what a
+ program has open or is mounted, what syncs to other devices, and what is in `/Users/Shared`.
- **Developer.** `DeveloperCaches.definitions` names each tool's folders, under the home folder, the account's cache
folder, or its temporary folder, each with what it holds (`ContentKind`) and where the tool documents it, a page or
a file in its repository at a commit, which the tests hold. Only what one tool owns outright is listed: no
diff --git a/GUIDE.md b/GUIDE.md
index 70191dc3..d886d0e0 100644
--- a/GUIDE.md
+++ b/GUIDE.md
@@ -127,11 +127,13 @@ Space shows what fills your disk, area by area, and what each area is.
finished, and updates apps downloaded and keep until they install them. Your iPhone and iPad backups are listed with
their size once Peel has Full Disk Access, and never moved. Nothing is selected for you, and Select Recommended takes
only what you can download again, such as an installed app's installer, any installer in Downloads, a macOS installer,
- or device firmware. It passes by an encrypted disk image, an installer elsewhere that is no installed app's, a package
+ device firmware, a download a browser never finished once it hasn't changed for a day, or an update whose app is
+ closed. It passes by an encrypted disk image, an installer elsewhere that is no installed app's, a package
an app keeps for itself, a download that changed in the last day, a `.part` file no browser left, which a torrent
client or another program that resumes downloads may still finish, an update whose app is open, and anything in
Shared, open in a program, open as a disk image, or syncing to your other devices. A disk image can also be one you
- made to keep files in, so look before you select it.
+ made to keep files in, so look before you select it. An installer, download, or update smaller than 20 MB isn't
+ listed.
- **iCloud Drive:** files already safe in iCloud that are also downloaded to this Mac, as Finder shows them: what is in
iCloud Drive and each app's documents, never an app's own data. Downloads are listed in the folders Finder shows
them in, named as Finder names them, the biggest first, and a folder's checkbox selects every file in it; a file
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/DocumentationTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/DocumentationTests.swift
index 7e3bb987..ed4ac83c 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/DocumentationTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/DocumentationTests.swift
@@ -40,6 +40,7 @@ struct DocumentationTests {
let minutes = Int(HoldBack.stillInUse / 60)
let days = Int(ProjectArtifacts.recentlyActive / (24 * 60 * 60))
let spaceFloor = SpaceInventory.minimumSize / 1_000_000
+ let installersFloor = Installers.minimumSize / 1_000_000
#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 = [
@@ -67,6 +68,7 @@ struct DocumentationTests {
("SAFETY.md", "changed in the last \(days) days, and a download that changed in the last day"),
("GUIDE.md", "changed in the last \(days) days"),
("GUIDE.md", "An area smaller than \(spaceFloor) MB isn't listed."),
+ ("GUIDE.md", "An installer, download, or update smaller than \(installersFloor) MB isn't listed."),
("docs/index.html", "\(themes) dark themes"),
("docs/llms.txt", "\(themes) dark themes"),
("docs/index.html", "\(tweaks) settings macOS already has"),
diff --git a/docs/index.html b/docs/index.html
index 901d9305..5ee6c624 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -505,7 +505,7 @@
</li>
<li class="reveal">
<h3>Installers and Backups</h3>
- <p>Disk images and packages in Downloads, Desktop, Documents, Public, and Shared; macOS installers; device firmware; unfinished downloads; and updates waiting to install. Your iPhone and iPad backups are listed with their size, and never moved. A disk image may be one you made, so nothing is selected for you.</p>
+ <p>Disk images and packages in Downloads, Desktop, Documents, Public, and Shared; macOS installers; device firmware; unfinished downloads; and updates waiting to install. Your iPhone and iPad backups are listed with their size once Peel has Full Disk Access, and never moved. Nothing is selected for you, and a disk image may be one you made, so look before you select it.</p>
</li>
<li class="reveal">
<h3>iCloud Drive</h3>