geogebra@5: migrate
This commit is contained in:
parent
e5ec217a45
commit
33d0cdfa91
|
@ -0,0 +1,29 @@
|
|||
cask "geogebra@5" do
|
||||
version "5.2.840.0"
|
||||
sha256 "08881a2fd55ecb38f8cbe353dc9b2448a7bd39f840c9f1b0f6eb87a19bfd083e"
|
||||
|
||||
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
|
Loading…
Reference in New Issue