Skip to content

Free, open-source macOS cleaner. CleanMyMac alternative with zero telemetry. Native SwiftUI, scheduled auto-cleaning, Xcode/Homebrew/system cache cleanup. MIT licensed.

fix(brew): use postflight_steps so the cask stops warning on upgrade (#182)

Moamen Baselda267f006db0
diff --git a/homebrew/puremac.rb b/homebrew/puremac.rb
index 77915c7..f320319 100644
--- a/homebrew/puremac.rb
+++ b/homebrew/puremac.rb
@@ -13,9 +13,9 @@ cask "puremac" do
# 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"]
+ postflight_steps do
+ run "/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister",
+ args: ["-f", "{{appdir}}/PureMac.app"]
end
zap trash: [