-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
/
geogebra.rb
34 lines (27 loc) 路 1.08 KB
/
geogebra.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
cask "geogebra" do
version "6.0.841.0"
sha256 "0ba13f3e2ed5648076479ac0656ce31d3f01cb63d92660a5b68c6593756ae525"
url "https://download.geogebra.org/installers/#{version.major_minor}/GeoGebra-Classic-#{version.major}-MacOS-Portable-#{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-port"
strategy :header_match do |headers|
v = headers["location"][%r{/GeoGebra-Classic-\d+-MacOS-Portable-(\d+(?:-\d+)+)\.zip}i, 1]
next if v.blank?
v.tr("-", ".")
end
end
auto_updates true
app "GeoGebra Classic #{version.major}.app"
uninstall quit: "org.geogebra.mathapps",
login_item: "GeoGebra",
pkgutil: "org.geogebra6.mac"
zap trash: [
"~/Library/GeoGebra",
"~/Library/Preferences/org.geogebra.mathapps.helper.plist",
"~/Library/Preferences/org.geogebra.mathapps.plist",
"~/Library/Saved Application State/org.geogebra.mathapps.savedState",
]
end