Skip to content

Commit

Permalink
360safe: add livecheck (Homebrew#103606)
Browse files Browse the repository at this point in the history
* 360safe: add livecheck

* Update 360safe.rb

* Update 360safe.rb

Co-authored-by: Miccal Matthews <[email protected]>
  • Loading branch information
reitermarkus and miccal committed Apr 10, 2021
1 parent a10b3f0 commit 4aaf069
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Casks/360safe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@
sha256 "bf161080b20bc1550e30d705075088f1f77b35aa88192c32cce25e532e09b6f4"

url "https://free.360totalsecurity.com/totalsecurity/mac/360ts_mac_#{version}.dmg"
appcast "https://www.360totalsecurity.com/en/version/360-total-security-mac/"
name "360 Total Security"
desc "Protection and antivirus security"
homepage "https://www.360totalsecurity.com/features/360-total-security-mac/"

livecheck do
url "https://www.360totalsecurity.com/en/version/360-total-security-mac/"
strategy :page_match
regex(/version-history-list.*?(\d+(?:\.\d+)*)/i)
end

app "360Safe.app"
end

0 comments on commit 4aaf069

Please sign in to comment.