excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / spike.rb
blob3a7ebd2d760de69ad52583474bebacf1e803dcb4
1 cask "spike" do
2   version "3.4.5"
3   sha256 "cfc84ff2f7ea4cc7c9ec4765a9ba408f1532ac778d50441add9efc3635518e33"
5   url "https://education.lego.com/_/downloads/SPIKE_APP_#{version.major}_macOS__#{version}_Global.dmg"
6   name "Lego SPIKE"
7   desc "Develop with Scratch and Python for your LEGO Spike set"
8   homepage "https://education.lego.com/"
10   livecheck do
11     url "https://education.lego.com/page-data/en-au/downloads/spike-app/software/page-data.json"
12     regex(/SPIKE[._-]APP[._-]\d+[._-]macOS[._-]+v?(\d+(?:\.\d+)+)[._-]Global\.dmg/i)
13   end
15   depends_on macos: ">= :catalina"
17   app "Spike.app"
19   zap trash: [
20     "~/Library/Application Scripts/com.lego.education.spikenext",
21     "~/Library/Containers/com.lego.education.spikenext",
22   ]
23 end