17FILE_DIR = os.path.dirname(os.path.abspath(__file__))
18INFRA_BOTS_DIR = os.path.realpath(os.path.join(FILE_DIR, os.pardir, os.pardir))
19sys.path.insert(0, INFRA_BOTS_DIR)
24URL = (
'https://github.com/Kitware/CMake/releases/download/v%s/'
25 'cmake-%s-Darwin-x86_64.tar.gz') % (VERSION, VERSION)
29 """Create the asset."""
31 subprocess.check_call([
'wget', URL,
'--output-document=cmake.tar.gz'])
32 subprocess.check_call([
'tar',
'--extract',
'--gunzip',
'--file',
33 'cmake.tar.gz',
'--directory', target_dir,
34 '--strip-components',
'1'])
38 parser = argparse.ArgumentParser()
39 parser.add_argument(
'--target_dir',
'-t', required=
True)
40 args = parser.parse_args()
44if __name__ ==
'__main__':
def create_asset(chrome_src_path, browser_executable, target_dir, upload_to_partner_bucket, dm_path)