Commit c6b76976 authored by Jérome Perrin's avatar Jérome Perrin

component/chromium: chromedriver / version XXX

parent 926e887e
......@@ -29,6 +29,15 @@ extends =
parts =
chromium
[chromium-wrapper-67]
# TODO
<= chromium-67
[chromium-67]
<= chromium
# XXX really ?
version = 67
[chromium]
recipe = slapos.recipe.build
slapos_promise =
......@@ -101,3 +110,26 @@ script =
os.system('"${findutils:location}/bin/find" "%(location)s" -type f -executable -exec "${coreutils:location}/bin/chmod" a+rx {} \;')
os.system('"${findutils:location}/bin/find" "%(location)s" -type f -exec "${coreutils:location}/bin/chmod" a+r {} \;')
os.chmod(wrapper_location, 0755)
[chromedriver]
<= chromedriver-2.41
[chromedriver-2.41]
<= chromedriver-base
version = 2.41
# Supports Chrome v67-69
x86_64-md5sum = fbd8b9561575054e0e7e9cc53b680a70
[chromedriver-base]
# Installs chromedriver ${version}
recipe = slapos.recipe.build
location = ${buildout:bin-directory}/${:_buildout_section_name_}
x86-64 = https://chromedriver.storage.googleapis.com/${:version}/chromedriver_linux64.zip
script =
url, md5sum = self.options[guessPlatform()].split()
extract_dir = self.extract(self.download(url, md5sum))
shutil.copy(extract_dir + '/chromedriver', %(location)r)
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment