-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
/
phd2.rb
36 lines (28 loc) · 972 Bytes
/
phd2.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
cask "phd2" do
version "2.6.13"
on_ventura :or_older do
sha256 "3d098cc6ccaa7ddf5040e51ca9f423647fe167948d7d92bece456fa207491b7f"
url "https://openphdguiding.org/PHD2-#{version}-OSX-64.zip"
livecheck do
url "https://openphdguiding.org/downloads/"
regex(/href=.*?PHD2[._-]v?(\d+(?:\.\d+)+)-OSX-64\.zip/i)
end
end
on_sonoma :or_newer do
sha256 "c8ea80bfaa57d7092e7b8ce67f6b905a768bf0b9e810f3c1faa065072feace2d"
url "https://openphdguiding.org/PHD2-#{version}-OSX-64-sonoma+.zip"
livecheck do
url "https://openphdguiding.org/downloads/"
regex(/href=.*?PHD2[._-]v?(\d+(?:\.\d+)+)-OSX-64-sonoma\+\.zip/i)
end
end
name "PHD2"
desc "Telescope guiding software"
homepage "https://openphdguiding.org/"
app "PHD2.app"
zap trash: [
"~/Documents/PHD2",
"~/Library/Preferences/org.openphdguiding.phd2.plist",
"~/Library/Saved Application State/org.openphdguiding.phd2.savedState",
]
end