Remove old chrome versions and add chrome 120

This commit is contained in:
Andrejs Cunskis 2024-01-10 08:34:13 +01:00
parent 038e54fb88
commit 55e0d4e969
No known key found for this signature in database
GPG key ID: 87CB75083F227241
5 changed files with 9 additions and 29 deletions

View file

@ -38,16 +38,8 @@ function build_debian() {
if [ "${ARCH}" == "amd64" ]; then
CHROME_VERSION_BASE=$(echo $CHROME_VERSION | awk -F "." '{print $1 "." $2 "." $3}')
CHROME_VERSION_MAJOR=$(echo $CHROME_VERSION | awk -F "." '{print $1}')
# Chromedriver location has moved starting with v115
# TODO: Remove once oldest supported version across installs is > 114
if [ "$CHROME_VERSION_MAJOR" -gt "114" ]; then
CHROME_DRIVER_VERSION=$(curl -q https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_$CHROME_VERSION_BASE)
WEBDRIVER_URL=https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/$CHROME_DRIVER_VERSION/linux64/chromedriver-linux64.zip
else
CHROME_DRIVER_VERSION=$(curl -q https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_VERSION_BASE)
WEBDRIVER_URL=https://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip
fi
CHROME_DRIVER_VERSION=$(curl -q https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_$CHROME_VERSION_BASE)
WEBDRIVER_URL=https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/$CHROME_DRIVER_VERSION/linux64/chromedriver-linux64.zip
wget -q -O chromedriver.zip $WEBDRIVER_URL
unzip -j chromedriver.zip -d /usr/local/bin