Update segger-jlink.rb

This commit is contained in:
Razvan Azamfirei 2023-06-16 06:52:47 -04:00 committed by GitHub
parent 411e7f1316
commit 7216ec0741
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

@ -13,13 +13,9 @@ cask "segger-jlink" do
desc "Software and Documentation pack for Segger J-Link debug probes"
homepage "https://www.segger.com/downloads/jlink"
# The livecheck should be reverted to the following once the release notes
# are updated appropriately.
# url "https://www.segger.com/downloads/jlink/ReleaseNotes_JLink.html"
# regex(/Version\s*V(\d+(?:\.\d+[a-z]?)*)/i)
livecheck do
url "https://www.segger.com/downloads/jlink/"
regex(/J-LinkSoftwareAndDocumentationPack\s[\s\S]*?option\svalue="0">V(\d+(?:\.\d+[a-z]?)*)/i)
url "https://www.segger.com/downloads/jlink/ReleaseNotes_JLink.html"
regex(/Version\s*V(\d+(?:\.\d+[a-z]?)*)/i)
end
pkg "JLink_MacOSX_V#{version.no_dots}_universal.pkg"