forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalhash.rb
55 lines (44 loc) · 1.2 KB
/
calhash.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
cask "calhash" do
sha256 :no_check
on_catalina do
version "1.0.5"
url "https://www.titanium-software.fr/download/1015/CalHash.dmg"
end
on_big_sur do
version "1.1.1"
url "https://www.titanium-software.fr/download/11/CalHash.dmg"
end
on_monterey do
version "1.1.9"
url "https://www.titanium-software.fr/download/12/CalHash.dmg"
end
on_ventura do
version "1.2.1"
url "https://www.titanium-software.fr/download/13/CalHash.dmg"
end
on_sonoma :or_newer do
version "1.3.3"
url "https://www.titanium-software.fr/download/14/CalHash.dmg"
end
name "CalHash"
desc "Calculate and compare file checksums"
homepage "https://www.titanium-software.fr/en/calhash.html"
livecheck do
url :homepage
regex(/>\s*CalHash\s+v?(\d+(?:\.\d+)+)\s+for\s+[\w\s.-]*\s+#{MacOS.version}\s*</i)
end
depends_on macos: [
:catalina,
:big_sur,
:monterey,
:ventura,
:sonoma,
]
app "CalHash.app"
zap trash: [
"~/Library/Caches/com.apple.helpd/Generated/CalHash Help*",
"~/Library/Logs/CalHash.log",
"~/Library/Preferences/com.titanium.Calhash.plist",
"~/Library/Saved Application State/com.titanium.Calhash.savedState",
]
end