Skip to content

Commit

Permalink
shotcut 24.09.13,240919
Browse files Browse the repository at this point in the history
  • Loading branch information
khipp authored and bevanjkay committed Sep 30, 2024
1 parent 89dcd64 commit aa0547d
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions Casks/s/shotcut.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,32 @@
cask "shotcut" do
version "24.09.13"
sha256 "60ac07ccf48617ca3c344175a651698f80cd73068aa3b5a3c1cfb8c2831d2177"
version "24.09.13,240919"
sha256 "fa05e60dfe7be6c78155c3ce9aae18ceb7882c40baa66770badf2dbb7c54a4ce"

url "https://github.com/mltframework/shotcut/releases/download/v#{version}/shotcut-macos-#{version.no_dots}.dmg",
url "https://github.com/mltframework/shotcut/releases/download/v#{version.csv.first}/shotcut-macos-#{version.csv.second || version.csv.first.no_dots}.dmg",
verified: "github.com/mltframework/shotcut/"
name "Shotcut"
desc "Video editor"
homepage "https://www.shotcut.org/"

# Upstream updates the binary versions without tagging a new release,
# resulting in circumstances where the tag and filename version do not match
livecheck do
url :url
strategy :github_latest
regex(%r{/v?(\d+(?:\.\d+)+)/shotcut[._-]macos[._-]v?(\d+(?:\.\d+)*)\.dmg$}i)
strategy :github_latest do |json, regex|
json["assets"]&.map do |asset|
match = asset["browser_download_url"]&.match(regex)
next if match.blank?

next match[1] if match[1]&.tr(".", "") == match[2]

"#{match[1]},#{match[2]}"
end
end
end

depends_on macos: ">= :big_sur"

app "Shotcut.app"

zap trash: [
Expand Down

0 comments on commit aa0547d

Please sign in to comment.