chromedriver.chromium.org (#2722)

* chromedriver.chromium.org

* add glib for linux

* platforms

* only darwin

* +mozilla.org/nss

* SUFFIX & deps

* oops

* platforms & comment
This commit is contained in:
Andrew 2023-08-26 20:18:33 +03:00 committed by GitHub
parent 75b3362814
commit 5e510863a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,39 @@
warnings:
- vendored
versions:
url: https://chromedriver.chromium.org/downloads
match: /ChromeDriver \d+\.\d+\.\d+\.\d+/
strip:
- /^ChromeDriver /
platforms:
- darwin
- linux/x86-64
# For now supporting only linux64, mac64, mac_arm64, win32
# See https://chromedriver.storage.googleapis.com/index.html?path=114.0.5735.90/
dependencies:
linux:
gnome.org/glib: ^2
mozilla.org/nss: '*'
x.org/xcb: '*'
build:
dependencies:
gnu.org/wget: '*'
linux:
info-zip.org/unzip: '*'
script:
- wget https://chromedriver.storage.googleapis.com/{{version.raw}}/chromedriver_${SUFFIX}.zip
- unzip chromedriver_${SUFFIX}.zip
- mkdir -p {{prefix}}/bin
- install chromedriver {{prefix}}/bin/
env:
darwin/x86-64:
SUFFIX: mac64
darwin/aarch64:
SUFFIX: mac_arm64
linux:
SUFFIX: linux64
provides:
- bin/chromedriver
test:
script:
- chromedriver --version | grep {{version}}