homebrew-cask/Casks/s/spike.rb

24 lines
746 B
Ruby

cask "spike" do
version "3.3.1"
sha256 "3f0bf1af88520004404171fc1e1e1121b04bf43a69616d43ba111aa5f0d32b75"
url "https://education.lego.com/_/downloads/SPIKE_APP_#{version.major}_macOS__#{version}_Global.dmg"
name "Lego SPIKE"
desc "Develop with Scratch and Python for your LEGO Spike set"
homepage "https://education.lego.com/"
livecheck do
url "https://education.lego.com/page-data/en-au/downloads/spike-app/software/page-data.json"
regex(/SPIKE[._-]APP[._-]\d+[._-]macOS[._-]+v?(\d+(?:\.\d+)+)[._-]Global\.dmg/i)
end
depends_on macos: ">= :catalina"
app "Spike.app"
zap trash: [
"~/Library/Application Scripts/com.lego.education.spikenext",
"~/Library/Containers/com.lego.education.spikenext",
]
end