Skip to content

Commit

Permalink
Merge pull request #193743 from IvoElferink/add_syride_sys_pc_tool_cask
Browse files Browse the repository at this point in the history
sys-pc-tool 6.33 (new cask)
  • Loading branch information
daeho-ro authored Dec 1, 2024
2 parents 025e4d7 + bb04507 commit 8f67cc7
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Casks/s/sys-pc-tool.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
cask "sys-pc-tool" do
version "6.33"
sha256 "509e6b833c7fc907c3c0989704b941acba6f9d13abe5f0c20834ee4d77eb0c4f"

url "https://www.syride.com/downloads/SYS_PC_Tool_setup_mac-#{version}.pkg"
name "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 8f67cc7

Please sign in to comment.