-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
/
macupdater.rb
41 lines (33 loc) 路 1.29 KB
/
macupdater.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
cask "macupdater" do
on_monterey :or_older do
version "2.3.15"
sha256 "9d6775c99b2a76d3f3be0e3d23c27305666341be16d38a0661c8d9cfa50e5256"
depends_on macos: ">= :mojave"
end
on_ventura :or_newer do
version "3.3.1"
sha256 "3052da96d7f09416dfebac43f5579c5fdb8789df2e35c85f0870c12634c83d8c"
depends_on macos: ">= :ventura"
end
url "https://www.corecode.io/downloads/macupdater_#{version}.dmg"
name "MacUpdater"
desc "Track and update to the latest versions of installed software"
homepage "https://www.corecode.io/macupdater/index.html"
livecheck do
url "https://www.corecode.io/macupdater/macupdater#{version.major}.xml"
strategy :sparkle, &:short_version
end
auto_updates true
app "MacUpdater.app"
binary "#{appdir}/MacUpdater.app/Contents/Resources/macupdater_client"
uninstall launchctl: "com.corecode.MacUpdaterLaunchHelper",
quit: "com.corecode.MacUpdater"
zap trash: [
"~/Library/Application Scripts/com.corecode.MacUpdaterLaunchHelper",
"~/Library/Application Support/MacUpdater*",
"~/Library/Caches/com.corecode.MacUpdater",
"~/Library/Containers/com.corecode.MacUpdaterLaunchHelper",
"~/Library/Cookies/com.corecode.MacUpdater.binarycookies",
"~/Library/Preferences/com.corecode.MacUpdater.plist",
]
end