Merge pull request #194004 from Homebrew/bump-binance-1.54.4
[Homebrew/homebrew-cask.git] / Casks / m / mps.rb
blob1971a2182e204cf2aee992651e00ed851886269f
1 cask "mps" do
2   arch arm: "macos-aarch64", intel: "macos"
4   version "2024.1.1,241.19072.1155"
5   sha256 arm:   "381b6c527f444ca2ea652054e172afee2096c29ad445cec7fa7fe6432cb41bea",
6          intel: "85f936a8d4a610b0232f5716f364cfae6edac5322fd40714c07e9ffabb11e85a"
8   url "https://download.jetbrains.com/mps/#{version.major_minor}/MPS-#{version.csv.first}-#{arch}.dmg"
9   name "JetBrains MPS"
10   desc "Create your own domain-specific language"
11   homepage "https://www.jetbrains.com/mps/"
13   livecheck do
14     url "https://data.services.jetbrains.com/products/releases?code=MPS&latest=true&type=release"
15     strategy :json do |json|
16       json["MPS"]&.map do |release|
17         version = release["version"]
18         build = release["build"]
19         next if version.blank? || build.blank?
21         "#{version},#{build}"
22       end
23     end
24   end
26   auto_updates true
27   depends_on macos: ">= :high_sierra"
29   app "MPS #{version.major_minor}.app", target: "MPS.app"
30   binary "#{appdir}/MPS.app/Contents/MacOS/mps"
32   zap trash: [
33     "~/Library/Application Support/MPS#{version.csv.first.major_minor}",
34     "~/Library/Caches/MPS#{version.csv.first.major_minor}",
35     "~/Library/Logs/MPS#{version.csv.first.major_minor}",
36     "~/Library/Preferences/MPS#{version.csv.first.major_minor}",
37     "~/MPSSamples.#{version.csv.first.major_minor}",
38   ]
39 end