cask "springtoolsforeclipse" do arch arm: "aarch64", intel: "x86_64" version "4.31.0,4.36.0" sha256 arm: "edc0ef6ec1db7cb0130abce442be0a1759ec2f303e0d8e7c2f95f35823233a60", intel: "6fda3b43ffd2af64edab1321d624efae7492e26d3601ea6aa9ced313c14c205e" url "https://cdn.spring.io/spring-tools/release/STS#{version.major}/#{version.csv.first}.RELEASE/dist/e#{version.csv.second.major_minor}/spring-tools-for-eclipse-#{version.csv.first}.RELEASE-e#{version.csv.second}-macosx.cocoa.#{arch}.dmg" name "Spring Tools for Eclipse" desc "Next generation tooling for Spring Boot" homepage "https://spring.io/tools/" livecheck do url :homepage regex(/ href=.*?spring-tools-for-eclipse[._-] v?(\d+(?:\.\d+)+)[._-]RELEASE[._-]e(\d+(?:\.\d+)+) [._-][^"' >]+?[._-]#{arch}\.dmg /ix) strategy :page_match do |page, regex| page.scan(regex).map { |match| "#{match[0]},#{match[1]}" } end end auto_updates true app "SpringToolsForEclipse.app" zap trash: [ "~/Library/Preferences/org.springframework.boot.ide.branding.sts*.plist", "~/Library/Saved Application State/org.springframework.boot.ide.branding.sts*.savedState", ] end