17URL =
"https://github.com/ninja-build/ninja/releases/download/%s/ninja-win.zip"
21 """Create the asset."""
22 subprocess.check_call([
"curl",
"-L", URL % VERSION,
"-o",
"ninja-win.zip"])
23 subprocess.check_call([
"unzip",
"ninja-win.zip",
"-d", target_dir])
24 subprocess.check_call([
"rm",
"ninja-win.zip"])
28 parser = argparse.ArgumentParser()
29 parser.add_argument(
'--target_dir',
'-t', required=
True)
30 args = parser.parse_args()
34if __name__ ==
'__main__':
def create_asset(chrome_src_path, browser_executable, target_dir, upload_to_partner_bucket, dm_path)