Fix chromedriver's version in archive.
This commit is contained in:
parent
a717235212
commit
8f44046f9a
3 changed files with 13 additions and 4 deletions
|
@ -146,6 +146,13 @@ def get_atom_shell_version():
|
|||
return subprocess.check_output(['git', 'describe', '--tags']).strip()
|
||||
|
||||
|
||||
def get_chromedriver_version():
|
||||
SOURCE_ROOT = os.path.abspath(os.path.join(__file__, '..', '..', '..'))
|
||||
chromedriver = os.path.join(SOURCE_ROOT, 'out', 'Release', 'chromedriver')
|
||||
output = subprocess.check_output([chromedriver, '-v']).strip()
|
||||
return 'v' + output[13:]
|
||||
|
||||
|
||||
def parse_version(version):
|
||||
if version[0] == 'v':
|
||||
version = version[1:]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue