| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2015 The Chromium Authors. All rights reserved. | 2 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import argparse | 6 import argparse |
| 7 import os | 7 import os |
| 8 import sys | 8 import sys |
| 9 import tempfile | 9 import tempfile |
| 10 import zipfile | 10 import zipfile |
| 11 | 11 |
| 12 _PLATFORMS = ["linux-x64", "android-arm"] | 12 _PLATFORMS = ["linux-x64", "android-arm", "android-x86", "android-x64"] |
| 13 _APPS = ["network_service", "network_service_apptests"] | 13 _APPS = ["network_service", "network_service_apptests"] |
| 14 _CURRENT_PATH = os.path.dirname(os.path.realpath(__file__)) | 14 _CURRENT_PATH = os.path.dirname(os.path.realpath(__file__)) |
| 15 sys.path.insert(0, os.path.join(_CURRENT_PATH, "pylib")) | 15 sys.path.insert(0, os.path.join(_CURRENT_PATH, "pylib")) |
| 16 import gs | 16 import gs |
| 17 | 17 |
| 18 if not sys.platform.startswith("linux"): | 18 if not sys.platform.startswith("linux"): |
| 19 print "Not supported for your platform" | 19 print "Not supported for your platform" |
| 20 sys.exit(0) | 20 sys.exit(0) |
| 21 | 21 |
| 22 script_dir = os.path.dirname(os.path.realpath(__file__)) | 22 script_dir = os.path.dirname(os.path.realpath(__file__)) |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 version = version_file.read().strip() | 80 version = version_file.read().strip() |
| 81 | 81 |
| 82 for app in _APPS: | 82 for app in _APPS: |
| 83 download_app(app, version, args.tools_directory) | 83 download_app(app, version, args.tools_directory) |
| 84 | 84 |
| 85 return 0 | 85 return 0 |
| 86 | 86 |
| 87 | 87 |
| 88 if __name__ == "__main__": | 88 if __name__ == "__main__": |
| 89 sys.exit(main()) | 89 sys.exit(main()) |
| OLD | NEW |