Files
wehub-resource-sync 869b84f27c
Build / build (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:29:30 +08:00

27 lines
943 B
Ruby

cask "puremac" do
version "2.8.3"
sha256 "29ac7c669b454c1cc6c91b826e1eea13bc4405d73ca9cad66c3cdee01073eb7f"
url "https://github.com/momenbasel/PureMac/releases/download/v#{version}/PureMac-#{version}.zip"
name "PureMac"
desc "Free, open-source macOS app manager and system cleaner"
homepage "https://github.com/momenbasel/PureMac"
depends_on macos: :ventura
app "PureMac.app"
# Refresh LaunchServices so the Dock/Launchpad icon updates immediately on
# (re)install instead of showing a stale cached icon (issue #111).
postflight do
system_command "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister",
args: ["-f", "#{appdir}/PureMac.app"]
end
zap trash: [
"~/Library/Preferences/com.puremac.app.plist",
"~/Library/Caches/com.puremac.app",
"~/Library/LaunchAgents/com.puremac.scheduler.plist",
]
end