mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
+4
-13
@@ -1,8 +1,8 @@
|
||||
cask "dehelper" do
|
||||
version "4.6.1,2024-01-09"
|
||||
sha256 "e20a93c9f00fae04038a9efe157563e084ccbcfa69b97265c8cbfdf241c612d7"
|
||||
version "4.6.1"
|
||||
sha256 :no_check
|
||||
|
||||
url "https://static.frdic.com/pkg/dhmac.dmg?v=#{version.csv.second}",
|
||||
url "https://static.frdic.com/pkg/dhmac.dmg",
|
||||
verified: "static.frdic.com/",
|
||||
user_agent: :fake
|
||||
name "Dehelper"
|
||||
@@ -12,16 +12,7 @@ cask "dehelper" do
|
||||
|
||||
livecheck do
|
||||
url "https://www.eudic.net/update/dehelper_mac.xml"
|
||||
regex(/href=.*?dhmac\.dmg\?v=(\d+(?:-\d+)+)/i)
|
||||
strategy :sparkle do |item, regex|
|
||||
download_page = Homebrew::Livecheck::Strategy.page_content("https://www.eudic.net/v4/de/app/download")
|
||||
next if download_page[:content].blank?
|
||||
|
||||
match = download_page[:content].match(regex)
|
||||
next if match.blank?
|
||||
|
||||
"#{item.short_version},#{match[1]}"
|
||||
end
|
||||
strategy :sparkle, &:short_version
|
||||
end
|
||||
|
||||
depends_on macos: ">= :high_sierra"
|
||||
|
||||
Reference in New Issue
Block a user