Only include chromedriver in vX.X.0 releases.

This commit is contained in:
Cheng Zhao 2014-09-20 22:39:52 +08:00
parent 805215be78
commit a717235212
4 changed files with 23 additions and 16 deletions

View file

@ -146,6 +146,17 @@ def get_atom_shell_version():
return subprocess.check_output(['git', 'describe', '--tags']).strip()
def parse_version(version):
if version[0] == 'v':
version = version[1:]
vs = version.split('.')
if len(vs) > 4:
return vs[0:4]
else:
return vs + ['0'] * (4 - len(vs))
def s3_config():
config = (os.environ.get('ATOM_SHELL_S3_BUCKET', ''),
os.environ.get('ATOM_SHELL_S3_ACCESS_KEY', ''),