29 lines
929 B
Ruby
29 lines
929 B
Ruby
cask "osp-tracker" do
|
|
version "6.1.7"
|
|
sha256 "ce389d2285955186529d65f616af4c8249279f0ce211d5281de0b104e5ead76d"
|
|
|
|
url "https://physlets.org/tracker/installers/download.php?file=Tracker-#{version}-osx-installer.dmg"
|
|
name "Tracker"
|
|
desc "Video analysis and modelling tool for physics education"
|
|
homepage "https://physlets.org/tracker/"
|
|
|
|
livecheck do
|
|
url :homepage
|
|
regex(/href=.*?file=Tracker[._-]v?(\d+(?:\.\d+)+)-osx-installer\.dmg/i)
|
|
end
|
|
|
|
installer script: {
|
|
executable: "Tracker-#{version}-osx-installer.app/Contents/MacOS/installbuilder.sh",
|
|
args: ["--mode", "unattended"],
|
|
sudo: true,
|
|
}
|
|
|
|
uninstall script: {
|
|
executable: "/usr/local/tracker/uninstall_Tracker.app/Contents/MacOS/installbuilder.sh",
|
|
args: ["--mode", "unattended"],
|
|
sudo: true,
|
|
}
|
|
|
|
zap trash: "~/Library/Saved Application State/org.opensourcephysics.cabrillo.tracker.savedState"
|
|
end
|