Skip to content

Commit

Permalink
Merge pull request #197149 from Homebrew/update-vlc@nightly
Browse files Browse the repository at this point in the history
vlc@nightly: consolidate url
  • Loading branch information
daeho-ro authored Jan 4, 2025
2 parents 8b14589 + 974575d commit 152ca6a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Casks/v/[email protected]
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
cask "vlc@nightly" do
arch arm: "arm64", intel: "x86_64"
livecheck_arch = on_arch_conditional arm: "-arm64", intel: "-intel64"
livecheck_arch = on_arch_conditional arm: "arm64", intel: "intel64"

on_arm do
version "4.0.0,20250104-0413,581e31de"
sha256 "71eb62850813393425f978546087783e671bf98861423fe5eefd6a72cd254b05"

url "https://artifacts.videolan.org/vlc/nightly-macos-#{arch}/#{version.csv.second}/vlc-#{version.csv.first}-dev-arm64-#{version.csv.third}.dmg"
end
on_intel do
version "4.0.0,20250104-0415,581e31de"
sha256 "831bd704a2d51b737c4b29389d729cef7be978d7413e0b18dfe27593d309001c"

url "https://artifacts.videolan.org/vlc/nightly-macos-#{arch}/#{version.csv.second}/vlc-#{version.csv.first}-dev-intel64-#{version.csv.third}.dmg"
end

url "https://artifacts.videolan.org/vlc/nightly-macos-#{arch}/#{version.csv.second}/vlc-#{version.csv.first}-dev-#{livecheck_arch}-#{version.csv.third}.dmg"
name "VLC media player"
desc "Open-source cross-platform multimedia player"
homepage "https://www.videolan.org/vlc/"

livecheck do
url "https://artifacts.videolan.org/vlc/nightly-macos-#{arch}/"
regex(/href=.*?vlc[._-]v?(\d+(?:\.\d+)+)-dev#{livecheck_arch}-(\h+)\.dmg/i)
regex(/href=.*?vlc[._-]v?(\d+(?:\.\d+)+)[._-]dev[._-]#{livecheck_arch}[._-](\h+)\.dmg/i)
strategy :page_match do |page, regex|
directory = page.scan(%r{href=["']?v?(\d+(?:[.-]\d+)+)/?["' >]}i)
.flatten
Expand Down

0 comments on commit 152ca6a

Please sign in to comment.