modify script

pull/4716/head
bunsenstraat 7 months ago
parent 8d5371cfda
commit 756b3f8140
  1. 33
      apps/remix-ide-e2e/install-webdriver.sh
  2. 2
      package.json
  3. 1
      version.txt
  4. 8
      yarn.lock

@ -1,5 +1,28 @@
google-chrome --version > version.txt
VERSION=$(grep -Eo '[0-9]+\.' < version.txt | head -1 | cut -d'.' -f1)
echo "CHROME DRIVER INSTALL $VERSION"
yarn add -D chromedriver@$VERSION geckodriver
rm version.txt
#!/bin/bash
# Determine the OS platform
OS="$(uname)"
if [ "$OS" == "Darwin" ]; then
# macOS systems
if [ -e "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" ]; then
version=$("/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --version)
echo "Google Chrome version on macOS: $version"
else
echo "Google Chrome is not installed on your macOS."
fi
elif [ "$OS" == "Linux" ]; then
# Linux systems
if command -v google-chrome >/dev/null; then
version=$(google-chrome --version)
echo "Google Chrome version on Linux: $version"
else
echo "Google Chrome is not installed on your Linux."
fi
else
echo "Unsupported OS."
fi
MAJORVERSION=$(echo "$version" | grep -Eo '[0-9]+\.' | head -1 | cut -d'.' -f1)
echo "CHROME DRIVER INSTALL $MAJORVERSION"
yarn add -D chromedriver@$MAJORVERSION geckodriver

@ -285,7 +285,7 @@
"buffer": "^6.0.3",
"chai": "^4.3.7",
"child_process": "^1.0.2",
"chromedriver": "122",
"chromedriver": "123",
"colors": "^1.4.0",
"colors-browserify": "^0.1.1",
"component-type": "^1.2.1",

@ -1 +0,0 @@
Google Chrome 122.0.6261.57

@ -10612,10 +10612,10 @@ chrome-trace-event@^1.0.2:
resolved "https://registry.yarnpkg.com/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz#1015eced4741e15d06664a957dbbf50d041e26ac"
integrity sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==
chromedriver@122:
version "122.0.6"
resolved "https://registry.yarnpkg.com/chromedriver/-/chromedriver-122.0.6.tgz#d5b2922416ba1b5e09d8da1c8fa95b370d10cd6f"
integrity sha512-Q0r+QlUtiJWMQ5HdYaFa0CtBmLFq3n5JWfmq9mOC00UMBvWxku09gUkvBt457QnYfTM/XHqY/HTFOxHvATnTmA==
chromedriver@123:
version "123.0.3"
resolved "https://registry.yarnpkg.com/chromedriver/-/chromedriver-123.0.3.tgz#40f9223373cbdf8f849e118507b24b0de8ecb21a"
integrity sha512-35IeTqDLcVR0htF9nD/Lh+g24EG088WHVKXBXiFyWq+2lelnoM0B3tKTBiUEjLng0GnELI4QyQPFK7i97Fz1fQ==
dependencies:
"@testim/chrome-version" "^1.1.4"
axios "^1.6.7"

Loading…
Cancel
Save