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.

Protect Wasabi's wallet backups and Ginger Wallet's wallets

Țugui Dragoș7bdb274c1877
diff --git a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
index bf2637a0..03e679f2 100644
--- a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
+++ b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
@@ -104,6 +104,9 @@ public enum ProtectedData: Sendable {
".sparrow/wallets",
".local/share/sparrow/wallets",
".walletwasabi/client/Wallets",
+ ".walletwasabi/client/WalletBackups",
+ ".gingerwallet/client/Wallets",
+ ".gingerwallet/client/WalletBackups",
".specter/wallets",
".specter/devices",
"Library/Application Support/Bisq/btc_mainnet/wallet",
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
index 8a778ef3..0ab6b86f 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
@@ -17,6 +17,9 @@ struct DesktopWalletTests {
"Library/Application Support/firo/backups/wallet.dat.2026-10-05-12-30",
"Library/Application Support/zcoin/wallet.dat",
"Library/Application Support/zcoin/backups/wallet.dat.2026-10-05-12-30",
+ ".walletwasabi/client/WalletBackups/Wallet.json",
+ ".gingerwallet/client/Wallets/Wallet.json",
+ ".gingerwallet/client/WalletBackups/Wallet.json",
])
func refusesWhatAWalletKeeps(_ key: String) throws {
let directory = try TemporaryDirectory()
@@ -39,6 +42,8 @@ struct DesktopWalletTests {
"Library/Application Support/DashCore/blocks/blk00000.dat",
"Library/Application Support/PIVX/blocks/blk00000.dat",
"Library/Application Support/firo/blocks/blk00000.dat",
+ ".walletwasabi/client/BitcoinStore/Main/IndexStore/MatureIndex.dat",
+ ".gingerwallet/client/BitcoinStore/Main/IndexStore/MatureIndex.dat",
])
func leavesWhatComesBackOnItsOwn(_ cache: String) throws {
let directory = try TemporaryDirectory()