Fix chromedriver's version in archive.

This commit is contained in:
Cheng Zhao 2014-09-20 23:09:49 +08:00
parent a717235212
commit 8f44046f9a
3 changed files with 13 additions and 4 deletions

View file

@ -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:]