mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
update livecheck strategy
This commit is contained in:
@@ -10,7 +10,9 @@ cask "visual-studio-code" do
|
||||
|
||||
livecheck do
|
||||
url "https://update.code.visualstudio.com/api/update/darwin-universal/stable/latest"
|
||||
regex(/"productVersion"\s*:\s*"(\d+(:?\.\d+)+)"/i)
|
||||
strategy :json do |json|
|
||||
json["productVersion"]
|
||||
end
|
||||
end
|
||||
|
||||
auto_updates true
|
||||
|
||||
Reference in New Issue
Block a user