25 lines
778 B
Ruby
25 lines
778 B
Ruby
cask "cycling74-max" do
|
||
version "8.5.3_230214"
|
||
sha256 "3ffa1d7e3e48a4654ff4f1a126d073fd8ab372ca531983ee65a61bfc88fcc7d8"
|
||
|
||
url "https://akiaj5esl75o5wbdcv2a-maxmspjitter.s3.amazonaws.com/Max#{version.no_dots}.dmg",
|
||
verified: "akiaj5esl75o5wbdcv2a-maxmspjitter.s3.amazonaws.com/"
|
||
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"
|
||
strategy :page_match do |page|
|
||
json = JSON.parse(page)
|
||
match = json["release_date"].match(/^\d{2}(\d{2})[._-](\d{2})[._-](\d{2})/)
|
||
next if match.blank?
|
||
|
||
"#{json["_id"]}_#{match[1]}#{match[2]}#{match[3]}"
|
||
end
|
||
end
|
||
|
||
app "Max.app"
|
||
end
|