3 sha256 "70e09514f09338558de1331077d766d79c299a3b3ad394e405d7a19e342ec8bb"
5 url "https://github.com/mltframework/shotcut/releases/download/v#{version.csv.first}/shotcut-macos-#{version.csv.second || version.csv.first.no_dots}.dmg",
6 verified: "github.com/mltframework/shotcut/"
9 homepage "https://www.shotcut.org/"
11 # The tag version can differ from the filename version, so we include both in
12 # the `version` when necessary.
15 regex(%r{/v?(\d+(?:\.\d+)+)/shotcut[._-]macos[._-]v?(\d+(?:\.\d+)*)\.dmg$}i)
16 strategy :github_latest do |json, regex|
17 json["assets"]&.map do |asset|
18 match = asset["browser_download_url"]&.match(regex)
21 next match[1] if match[1].tr(".", "") == match[2].tr(".", "")
23 "#{match[1]},#{match[2]}"
28 depends_on macos: ">= :big_sur"
33 "~/Library/Application Support/Meltytech",
34 "~/Library/Caches/Meltytech",
35 "~/Library/Preferences/com.meltytech.Shotcut.plist",