forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuninstallpkg.rb
27 lines (21 loc) · 863 Bytes
/
uninstallpkg.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cask "uninstallpkg" do
version "1.2.1"
sha256 "4b66f6a0638a5619308a84ff5d8b4405cdf60287d9c923ae7eda0b456a9f461c"
url "https://www.corecode.io/downloads/uninstallpkg_#{version}.zip"
name "UninstallPKG"
desc "PKG software package uninstall tool"
homepage "https://www.corecode.io/uninstallpkg/"
livecheck do
url "https://www.corecode.io/uninstallpkg/uninstallpkg.xml"
strategy :sparkle, &:short_version
end
depends_on macos: ">= :mojave"
app "UninstallPKG.app"
uninstall launchctl: "com.corecode.UninstallPKGDeleteHelper",
delete: "/Library/PrivilegedHelperTools/com.corecode.UninstallPKGDeleteHelper"
zap trash: [
"~/Library/Application Support/UninstallPKG",
"~/Library/Preferences/com.corecode.UninstallPKG.plist",
"~/Library/Saved Application State/com.corecode.UninstallPKG.savedState",
]
end