Flutter Engine
The Flutter Engine
third_party
skia
infra
bots
assets
jq
create.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
#
3
# Copyright 2017 Google Inc.
4
#
5
# Use of this source code is governed by a BSD-style license that can be
6
# found in the LICENSE file.
7
8
9
"""Create the asset."""
10
11
12
import
argparse
13
import
subprocess
14
15
16
DOWNLOAD_URL =
'https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64'
17
18
19
def
create_asset
(target_dir):
20
"""Create the asset."""
21
subprocess.check_call([
'wget'
,
'-O'
,
'jq'
, DOWNLOAD_URL], cwd=target_dir)
22
subprocess.check_call([
'chmod'
,
'a+x'
,
'jq'
], cwd=target_dir)
23
24
25
def
main
():
26
parser = argparse.ArgumentParser()
27
parser.add_argument(
'--target_dir'
,
'-t'
, required=
True
)
28
args = parser.parse_args()
29
create_asset
(args.target_dir)
30
31
32
if
__name__ ==
'__main__'
:
33
main
()
34
create.main
def main()
Definition:
create.py:69
create.create_asset
def create_asset(target_dir)
Definition:
create.py:32
main
Definition:
main.py:1
Generated on Sun Jun 23 2024 21:56:04 for Flutter Engine by
1.9.4