Skip to content

Commit

Permalink
ccleaner: livecheck matches complete version (#103821)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhenfu Shi authored Apr 13, 2021
1 parent 0b0b23c commit 4714db6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Casks/ccleaner.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
cask "ccleaner" do
version "1.18"
version "1.18.30"
sha256 "52295172b846c477f1c5396c9f568d602b89fad52d2fcaba394a14296e096ce6"

url "https://download.ccleaner.com/mac/CCMacSetup#{version.no_dots}.dmg"
url "https://download.ccleaner.com/mac/CCMacSetup#{version.major_minor.no_dots}.dmg"
name "Piriform CCleaner"
desc "Remove junk and unused files"
homepage "https://www.ccleaner.com/ccleaner-mac"

livecheck do
url "https://www.ccleaner.com/ccleaner/download?mac"
strategy :page_match do |page|
match = page.match(%r{href=.*?/CCMacSetup(\d+?)(\d+)\.dmg}i)
"#{match[1]}.#{match[2]}"
end
strategy :page_match
regex(/CCleaner\s*Mac\s*v?(\d+(?:\.\d+)*)/i)
end

app "CCleaner.app"
Expand Down

0 comments on commit 4714db6

Please sign in to comment.