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

@ -4,7 +4,7 @@ import os
import re
import sys
from lib.util import execute, get_atom_shell_version, scoped_cwd
from lib.util import execute, get_atom_shell_version, parse_version, scoped_cwd
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
@ -35,17 +35,6 @@ def main():
git_push()
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 increase_version(versions, index):
for i in range(index + 1, 4):
versions[i] = '0'