homebrew-cask/Casks/scratch.rb

24 lines
639 B
Ruby

cask "scratch" do
version "3.27.0"
sha256 "fdbbeda2a161d7a0e926c1505d812aba343a33c5659e261329f17d90f8a0c3dc"
url "https://downloads.scratch.mit.edu/desktop/Scratch%20#{version}.dmg"
name "Scratch"
desc "Programs 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",
]
end