mirror of
https://github.com/Jackett/Jackett
synced 2024-12-25 17:27:48 +00:00
No longer manually install ChromeDriver (#7271)
This commit is contained in:
parent
d5724f2f63
commit
966c64c48e
1 changed files with 0 additions and 18 deletions
|
@ -321,24 +321,6 @@ stages:
|
|||
if [[ "$(artifactName)" == *"macOS"* ]]; then sudo ./install_service_macos; fi
|
||||
if [[ "$(artifactName)" == *"LinuxAMDx64"* ]]; then sudo ./install_service_systemd.sh; fi
|
||||
|
||||
#Remove this task once ChromeDriver is deployed to Ubuntu image https://github.com/actions/virtual-environments/issues/9
|
||||
- task: Bash@3
|
||||
displayName: Install ChromeDriver (Linux and Mono)
|
||||
condition: and(succeeded(), eq(variables['imageName'], 'ubuntu-latest'))
|
||||
inputs:
|
||||
targetType: inline
|
||||
script: |
|
||||
CHROME_VERSION=$(google-chrome --version | cut -f 3 -d ' ' | cut -d '.' -f 1) \
|
||||
&& CHROMEDRIVER_RELEASE=$(curl --location --fail --retry 3 http://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_VERSION}) \
|
||||
&& curl --silent --show-error --location --fail --retry 3 --output /tmp/chromedriver_linux64.zip "http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_RELEASE/chromedriver_linux64.zip" \
|
||||
&& cd /tmp \
|
||||
&& unzip chromedriver_linux64.zip \
|
||||
&& rm -rf chromedriver_linux64.zip \
|
||||
&& sudo mv chromedriver /usr/local/bin/chromedriver \
|
||||
&& sudo chmod +x /usr/local/bin/chromedriver \
|
||||
&& chromedriver --version
|
||||
echo "##vso[task.setvariable variable=CHROMEWEBDRIVER]/usr/local/bin"
|
||||
|
||||
- task: UseDotNet@2
|
||||
displayName: Install .NET Core SDK
|
||||
inputs:
|
||||
|
|
Loading…
Reference in a new issue