Skip to content

Commit

Permalink
Updated livecheck based on review and suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
IvoElferink committed Nov 30, 2024
1 parent 1fc46b4 commit 53315aa
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Casks/s/syride-sys-pc-tool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@
homepage "https://www.syride.com/"

livecheck do
url "https://www.syride.com/en/software"
regex(%r{href="/downloads/SYS[._-]PC[._-]Tool[._-]setup[._-]mac[._-]v?(\d+(?:\.\d+)+)\.pkg}i)
url "http://www.syride.com/downloads/SYS_PC_Tool/webconfig-para4.xml"
regex(/SYS[._-]PC[._-]Tool[._-]setup[._-]mac[._-]v?(\d+(?:[.-]\d+)+)\.pkg/i)
strategy :xml do |xml, regex|
url = xml.elements["//sysui_config[@machine='mac']/file"]&.text&.strip
match = url.match(regex) if url

match[1]
end
end

auto_updates true
Expand Down

0 comments on commit 53315aa

Please sign in to comment.