cask "scratch" do version "3.29.1" sha256 "0032867c2eb6885e1e1f3e24fe24f37fc5a12c3e995825f8eea5630eb8052860" url "https://downloads.scratch.mit.edu/desktop/Scratch%20#{version}.dmg" name "Scratch" desc "Programmes interactive stories, games, and animations" homepage "https://scratch.mit.edu/download" livecheck do url "https://downloads.scratch.mit.edu/desktop/Scratch.dmg" strategy :header_match end depends_on macos: ">= :high_sierra" app "Scratch #{version.major}.app" zap trash: [ "~/Library/Application Support/Scratch", "~/Library/Preferences/edu.mit.scratch.scratch-desktop.plist", ] caveats do requires_rosetta end end