google-chrome: more robust update check

This commit is contained in:
Michael Aldridge 2017-07-14 21:24:17 -07:00 committed by Michael Aldridge
parent 2cfef58907
commit 0813c61332

View file

@ -1,3 +1,7 @@
# This is the only site I've reliably found the version number on
site=https://www.whatismybrowser.com/guides/the-latest-version/chrome
pattern="\K\d+\.\d+\.\d+\.\d+(?=<\/h2>)"
# This site is an official source of version numbers, but it is not
# obviously associated as such. We save bytes here and request the
# CSV, and then only the row containing the stable version number for
# the Linux desktop build. As a result the regex can be pretty simple
# to just grab the version number out of the correct column.
site="https://omahaproxy.appspot.com/all?os=linux&channel=stable"
pattern="stable,\K[\d.]+(?=,)"