32 lines
935 B
Ruby
32 lines
935 B
Ruby
cask "cycling74-max" do
|
||
version "8.5.6_230906"
|
||
sha256 "237415490ed33ba30febac6d99aca0c0528beca56909a4e5825735a4c933d66f"
|
||
|
||
url "https://downloads.cdn.cycling74.com/max8/Max#{version.no_dots}.dmg"
|
||
name "Cycling ‘74 Max"
|
||
name "Ableton Max for Live"
|
||
desc "Flexible space to create your own interactive software"
|
||
homepage "https://cycling74.com/"
|
||
|
||
livecheck do
|
||
url "https://auth.cycling74.com/maxversion"
|
||
regex(/^\d{2}(\d{2})[._-](\d{2})[._-](\d{2})/i)
|
||
strategy :page_match do |page, regex|
|
||
json = JSON.parse(page)
|
||
match = json["release_date"].match(regex)
|
||
next if match.blank?
|
||
|
||
"#{json["_id"]}_#{match[1]}#{match[2]}#{match[3]}"
|
||
end
|
||
end
|
||
|
||
app "Max.app"
|
||
|
||
zap trash: [
|
||
"/Users/Shared/Max #{version.major}",
|
||
"~/Documents/Max #{version.major}",
|
||
"~/Library/Application Support/Cycling '74",
|
||
"~/Library/Saved Application State/com.cycling74.Max.savedState",
|
||
]
|
||
end
|