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

various: update livecheck #197409

Merged
merged 18 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion Casks/a/arc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

livecheck do
url "https://releases.arc.net/updates.xml"
regex(%r{/Arc[._-]v?(\d+(?:\.\d+)+)[._-](\d+).zip}i)
regex(%r{/Arc[._-]v?(\d+(?:\.\d+)+)[._-](\d+)\.zip}i)
strategy :sparkle do |item, regex|
match = item.url.match(regex)
next if match.blank?
Expand Down
2 changes: 1 addition & 1 deletion Casks/b/bartender.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

livecheck do
url "https://www.macbartender.com/B2/updates/AppcastB#{version.major}.xml"
regex(%r{/v?(\d+(?:[.-]\d+)+)/Bartender%20#{version.major}.zip}i)
regex(%r{/v?(\d+(?:[.-]\d+)+)/Bartender%20#{version.major}\.zip}i)
strategy :sparkle do |item, regex|
item.url.scan(regex)&.map { |match| match[0].tr("-", ".") }
end
Expand Down
2 changes: 1 addition & 1 deletion Casks/c/cisco-jabber.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

livecheck do
url :homepage
regex(%r{jabberAppUrl =.*?(\d+)/Install[._-]Cisco[._-]Jabber[._-]Mac.pkg}i)
regex(%r{jabberAppUrl =.*?(\d+)/Install[._-]Cisco[._-]Jabber[._-]Mac\.pkg}i)
end

pkg "Install_Cisco-Jabber-Mac.pkg"
Expand Down
2 changes: 1 addition & 1 deletion Casks/d/dosbox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

livecheck do
url "https://sourceforge.net/projects/dosbox/rss?path=/dosbox"
regex(%r{<link>.*/DOSBox-(\d+(?:[.-]\d+)*).dmg}i)
regex(%r{<link>.*/DOSBox-(\d+(?:[.-]\d+)*)\.dmg}i)
strategy :page_match do |page, regex|
page.scan(regex).map do |matches|
versions = matches[0].split("-")
Expand Down
2 changes: 1 addition & 1 deletion Casks/e/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

livecheck do
url "https://emacsformacosx.com/atom/pretest"
regex(/Emacs[._-]pretest[._-]v?(\d+(?:\.\d+)+)[._-]universal.dmg/i)
regex(/Emacs[._-]pretest[._-]v?(\d+(?:\.\d+)+)[._-]universal\.dmg/i)
end

conflicts_with cask: [
Expand Down
2 changes: 1 addition & 1 deletion Casks/f/final-fantasy-xiv-online.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

livecheck do
url "https://na.finalfantasyxiv.com/mac/download/"
regex(%r{href="https://download.finalfantasyxiv.com/inst/([^/]*)/FINAL[._-]FANTASY[._-]XIV[._-]ONLINE[._-]x64.dmg"}i)
regex(%r{href=.*?inst/([^/]*)/FINAL[._-]FANTASY[._-]XIV[._-]ONLINE[._-]x64\.dmg}i)
end

auto_updates true
Expand Down
2 changes: 1 addition & 1 deletion Casks/f/fxfactory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

livecheck do
url "https://fxfactory.com/download/"
regex(/FxFactory[._-]v?(\d+(?:\.\d+)+)[._-](\d+).zip/i)
regex(/FxFactory[._-]v?(\d+(?:\.\d+)+)[._-](\d+)\.zip/i)
strategy :page_match do |page, regex|
match = page.match(regex)
next if match.blank?
Expand Down
2 changes: 1 addition & 1 deletion Casks/g/gcc-aarch64-embedded.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

livecheck do
url "https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads"
regex(/href=.*?arm-gnu-toolchain-(\d+\.\d+\.\w+)-darwin-(?:\w+)-aarch64-none-elf.pkg/i)
regex(/href=.*?arm-gnu-toolchain-(\d+\.\d+\.\w+)-darwin-(?:\w+)-aarch64-none-elf\.pkg/i)
end

pkg "arm-gnu-toolchain-#{version}-darwin-#{arch}-aarch64-none-elf.pkg"
Expand Down
2 changes: 1 addition & 1 deletion Casks/g/gcc-arm-embedded.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

livecheck do
url "https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads"
regex(/href=.*?arm-gnu-toolchain-(\d+\.\d+\.\w+)-darwin-(?:\w+)-arm-none-eabi.pkg/i)
regex(/href=.*?arm-gnu-toolchain-(\d+\.\d+\.\w+)-darwin-(?:\w+)-arm-none-eabi\.pkg/i)
end

pkg "arm-gnu-toolchain-#{version}-darwin-#{arch}-arm-none-eabi.pkg"
Expand Down
2 changes: 1 addition & 1 deletion Casks/g/green-go-control.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

livecheck do
url "https://manual.greengoconnect.com/en/release-notes/software/"
regex(%r{href=.*?/(\d+(?:\.\d+)+)/macos/green-go-control.dmg}i)
regex(%r{href=.*?/(\d+(?:\.\d+)+)/macos/green-go-control\.dmg}i)
end

depends_on macos: ">= :big_sur"
Expand Down
2 changes: 1 addition & 1 deletion Casks/k/kdenlive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

livecheck do
url "https://kdenlive.org/en/download/"
regex(/href=.*?kdenlive[._-]v?(\d+(?:[.-]\d+)+)-#{arch}.dmg/i)
regex(/href=.*?kdenlive[._-]v?(\d+(?:[.-]\d+)+)-#{arch}\.dmg/i)
end

depends_on macos: ">= :big_sur"
Expand Down
2 changes: 1 addition & 1 deletion Casks/l/labplot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

livecheck do
url "https://download.kde.org/stable/labplot/"
regex(/href=.*?labplot[._-]v?(\d+(?:\.\d+)+)[._-]#{arch}.dmg/i)
regex(/href=.*?labplot[._-]v?(\d+(?:\.\d+)+)[._-]#{arch}\.dmg/i)
end

depends_on macos: ">= :sonoma"
Expand Down
2 changes: 1 addition & 1 deletion Casks/s/starnet++.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

livecheck do
url "https://www.starnetastro.com/download/"
regex(%r{uploads/(\d+)/(\d+)/StarNetv?(\d+(?:\.\d+)*)CLI[._-]MacOS.zip}i)
regex(%r{uploads/(\d+)/(\d+)/StarNetv?(\d+(?:\.\d+)*)CLI[._-]MacOS\.zip}i)
strategy :page_match do |page, regex|
page.scan(regex).map { |match| "#{match[2]},#{match[1]},#{match[0]}" }
end
Expand Down
2 changes: 1 addition & 1 deletion Casks/s/starnet2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

livecheck do
url "https://www.starnetastro.com/experimental/"
regex(%r{uploads/(\d+)/(\d+)/StarNet2T_MacOS.zip}i)
regex(%r{uploads/(\d+)/(\d+)/StarNet2T_MacOS\.zip}i)
strategy :page_match do |page, regex|
page.scan(regex).map { |match| "#{match[1]},#{match[0]}" }
end
Expand Down
2 changes: 1 addition & 1 deletion Casks/t/tiger-trade.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

livecheck do
url "https://up.play-analytics.com/app/upgrade/latest?lang=zh_CN&platform=darwin&appVer=1"
regex(/TigerTrade[._-]v?(\d+(?:\.\d+)+)[._-](\h+).dmg/i)
regex(/TigerTrade[._-]v?(\d+(?:\.\d+)+)[._-](\h+)\.dmg/i)
strategy :json do |json, regex|
match = json["downloadUrl"]&.match(regex)
next if match.blank?
Expand Down
2 changes: 1 addition & 1 deletion Casks/u/usmart-trade.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

livecheck do
url "https://www.usmart.hk/en/download"
regex(%r{href=['"].*?file/(\d+[-_]\d+[-_]\d+)/((?:\w+-)+(?:\w+))/.*?Trade[-_]?(\d+(?:\.\d+)+).dmg}i)
regex(%r{href=['"].*?file/(\d+[-_]\d+[-_]\d+)/((?:\w+-)+(?:\w+))/.*?Trade[-_]?(\d+(?:\.\d+)+)\.dmg}i)
strategy :page_match do |page, regex|
page.scan(regex)
.map { |match| "#{match[2]},#{match[1]},#{match[0]}" }
Expand Down
2 changes: 1 addition & 1 deletion Casks/v/vbrokers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

livecheck do
url "https://www.hstong.com/download"
regex(%r{href=['"].*?/HSTONG[-_]?Mac[-_]?(\d+)[-_]?(\d+(?:\.\d+)+)[-_]?(\d+).dmg}i)
regex(%r{href=['"].*?/HSTONG[-_]?Mac[-_]?(\d+)[-_]?(\d+(?:\.\d+)+)[-_]?(\d+)\.dmg}i)
strategy :page_match do |page, regex|
page.scan(regex)
.map { |match| "#{match[1]},#{match[0]},#{match[2]}" }
Expand Down
2 changes: 1 addition & 1 deletion Casks/v/virtualbox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

livecheck do
url "https://www.virtualbox.org/wiki/Downloads"
regex(/href=.*?VirtualBox[._-]v?(\d+(?:\.\d+)+)[._-](\d+)[._-]OSX.dmg/i)
regex(/href=.*?VirtualBox[._-]v?(\d+(?:\.\d+)+)[._-](\d+)[._-]OSX\.dmg/i)
strategy :page_match do |page, regex|
match = page.match(regex)
next if match.blank?
Expand Down
Loading