Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
Developer lists Opera's graphics caches and on-device models
Țugui Dragoș2c4bdb9d1983
diff --git a/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swift b/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swiftindex 0a28cde1..b9fe4192 100644--- a/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swift+++ b/Packages/PeelCore/Sources/PeelCore/Developer/DeveloperCaches.swift@@ -968,8 +968,9 @@ public enum DeveloperCaches {Folder("Library/Application Support/Jan/data/mlx/models", .models, source: "https://jan.ai/docs/desktop/data-folder"),Folder("Library/Application Support/Jan/data/logs", .logs, source: "https://jan.ai/docs/desktop/data-folder"),]),- // Chromium's docs/user_data_dir.md names each Chrome channel's and Chromium's folder, and Brave's own- // importer names Brave's. Their disk caches are in `Library/Caches`, which Space empties.+ // Chromium's docs/user_data_dir.md names each Chrome channel's and Chromium's folder, Brave's own importer+ // names Brave's, and Opera's desktop blog names Opera's (blogs.opera.com/desktop/2023/08). Their disk caches+ // are in `Library/Caches`, which Space empties.Definition(id: "chrome", name: "Google Chrome", systemImage: "globe",appBundleIdentifiers: ["com.google.Chrome", "com.google.Chrome.beta", "com.google.Chrome.dev",@@ -986,6 +987,10 @@ public enum DeveloperCaches {id: "brave", name: "Brave", systemImage: "globe", appBundleIdentifiers: ["com.brave.Browser"],folders: chromiumFolders(in: "Library/Application Support/BraveSoftware/Brave-Browser")),+ Definition(+ id: "opera", name: "Opera", systemImage: "globe", appBundleIdentifiers: ["com.operasoftware.Opera"],+ folders: chromiumFolders(in: "Library/Application Support/com.operasoftware.Opera")+ ),]/// The caches and models Chromium keeps in a browser's user data folder, beside its profiles and in each of them,diff --git a/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swiftindex bc668a88..a11613cd 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/DeveloperCachesTests.swift@@ -130,6 +130,20 @@ struct DeveloperCachesTests {#expect(Set(listed) == Set(caches))}+ /// Opera is built on Chromium and keeps the same caches in the folder Opera itself names.+ @Test func listsOperasCachesAsChromiumNamesThem() async throws {+ let directory = try TemporaryDirectory()+ let opera = "Library/Application Support/com.operasoftware.Opera"+ for path in ["ShaderCache/data_0", "Default/GPUCache/data_0", "Default/History"] {+ try directory.file("\(opera)/\(path)", bytes: 4_096)+ }++ let environments = await scanned(directory.url)++ let listed = try #require(environments.first { $0.id == "opera" }).locations.map(\.url.lastPathComponent)+ #expect(Set(listed) == ["ShaderCache", "GPUCache"])+ }+@Test func neverListsAFolderInsideAnotherItAlreadyLists() async throws {let directory = try TemporaryDirectory()let chrome = "Library/Application Support/Google/Chrome"diff --git a/README.md b/README.mdindex c131f3b4..03e69589 100644--- a/README.md+++ b/README.md@@ -106,11 +106,11 @@ Peel is free and open source, and it speaks English and 17 other languages.- **Orphaned Files:** files left behind by apps you already removed.- **Developer:** caches of Xcode, package managers, build systems, editors, cloud and virtual machine tools, game- engines, and AI models, the graphics caches of Chrome, Chromium, and Brave, and the web caches of apps built on- Electron, such as Slack or Discord (never what a browser or an app keeps for you). Xcode's archives and the symbols- it copied from your devices, model weights, installed packages, and what a tool keeps for you to install again- (Vagrant boxes, Asset Store packages) are listed but never selected for you, and toolchains or anything holding an- account are never listed.+ engines, and AI models, the graphics caches of Chrome, Chromium, Brave, and Opera, and the web caches of apps built+ on Electron, such as Slack or Discord (never what a browser or an app keeps for you). Xcode's archives and the+ symbols it copied from your devices, model weights, installed packages, and what a tool keeps for you to install+ again (Vagrant boxes, Asset Store packages) are listed but never selected for you, and toolchains or anything+ holding an account are never listed.- **Build Artifacts:** what builds left in the folders you choose, like `node_modules`, `DerivedData`, `target`,`.nuxt`, `__pycache__`, Unity's `Library`, and any folder its tool tagged as a cache (`CACHEDIR.TAG`), each onlywhen a file of the tool that makes it proves it. A project changed in the last 7 days is never selected for you, and