-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
/
geogebra@5.rb
29 lines (22 loc) 路 950 Bytes
/
geogebra@5.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
cask "geogebra@5" do
version "5.2.841.0"
sha256 "3ee5062fa6080fade44ed6d246dc2b350c72c655bb23ce3c2524a9dad72b99c0"
url "https://download.geogebra.org/installers/#{version.major_minor}/GeoGebra-MacOS-Installer-withJava-#{version.dots_to_hyphens}.zip"
name "GeoGebra"
desc "Solve, save and share math problems, graph functions, etc"
homepage "https://www.geogebra.org/"
livecheck do
url "https://download.geogebra.org/package/mac"
regex(%r{/GeoGebra[._-]MacOS[._-]Installer[._-]withJava[._-]v?(\d+(?:-\d+)+)\.zip}i)
strategy :header_match do |headers, regex|
match = headers["location"][regex, 1]
next if match.blank?
match.tr("-", ".")
end
end
deprecate! date: "2025-05-01", because: :unsigned
app "Geogebra.app"
uninstall quit: "org.geogebra#{version.major}.mac",
login_item: "Geogebra"
zap trash: "~/Library/Saved Application State/org.geogebra5.mac.savedState"
end