From 374d90945bdda746552eaec322fdeaef6aa93cb9 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Mon, 11 Jan 2021 02:55:11 +0100 Subject: [PATCH] wine-stable: add livecheck (#97915) --- Casks/wine-stable.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Casks/wine-stable.rb b/Casks/wine-stable.rb index b615fffe70a..569f9e00a75 100644 --- a/Casks/wine-stable.rb +++ b/Casks/wine-stable.rb @@ -3,11 +3,16 @@ cask "wine-stable" do sha256 "de2b23342edfa29a1518d8940992e855d30b3416084964311f184c9fdfb146a5" url "https://dl.winehq.org/wine-builds/macosx/pool/winehq-stable-#{version}.pkg" - appcast "https://dl.winehq.org/wine-builds/macosx/download.html" name "WineHQ-stable" desc "Compatibility layer to run Windows applications" homepage "https://wiki.winehq.org/MacOS" + livecheck do + url "https://dl.winehq.org/wine-builds/macosx/download.html" + strategy :page_match + regex(%r{href=.*?/winehq-stable-(\d+(?:\.\d+)*)\.pkg}i) + end + conflicts_with cask: [ "wine-devel", "wine-staging",