Skip to content

Commit

Permalink
syride-sys-pc-tool 6.33 (new cask)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvoElferink committed Nov 30, 2024
1 parent e4413c9 commit 936cf3b
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Casks/s/syride-sys-pc-tool.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
cask "syride-sys-pc-tool" do
version "6.33"
sha256 "509e6b833c7fc907c3c0989704b941acba6f9d13abe5f0c20834ee4d77eb0c4f"

url "https://www.syride.com/downloads/SYS_PC_Tool_setup_mac-#{version}.pkg"
name "Syride SYS PC Tool"
desc "Software for Syride instruments"
homepage "https://www.syride.com/"

livecheck do
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
depends_on macos: ">= :sierra"

pkg "SYS_PC_TOOL_setup_mac-#{version}.pkg"

uninstall pkgutil: "com.syride.syspctool",
delete: "/Applications/SYS-PC-Tool.app"

zap trash: [
"~/.syride",
"~/Library/Saved Application State/Syride.SYS-PC-Tool.savedState",
"~/syride",
]
end

0 comments on commit 936cf3b

Please sign in to comment.