Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shotcut 24.09.13,240919 #187021

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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",
bevanjkay marked this conversation as resolved.
Show resolved Hide resolved
verified: "github.com/mltframework/shotcut/"
name "Shotcut"
desc "Video editor"
homepage "https://www.shotcut.org/"

# The tag version can differ from the filename version, so we include both in
# the `version` when necessary.
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].tr(".", "")

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

depends_on macos: ">= :big_sur"

app "Shotcut.app"

zap trash: [
Expand Down
Loading