Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: build/android/binary_size/apk_downloader.py

Issue 2820163003: Android: update patch size reference APKs for m59. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | build/android/binary_size/apks/Android_Builder/59/ChromeModernPublic.apk.sha1 » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright 2017 The Chromium Authors. All rights reserved. 2 # Copyright 2017 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 9
10 _BUILD_ANDROID = os.path.join(os.path.dirname(__file__), os.pardir) 10 _BUILD_ANDROID = os.path.join(os.path.dirname(__file__), os.pardir)
11 sys.path.append(_BUILD_ANDROID) 11 sys.path.append(_BUILD_ANDROID)
12 from pylib.constants import host_paths 12 from pylib.constants import host_paths
13 13
14 sys.path.append(os.path.join(host_paths.DIR_SOURCE_ROOT, 'build')) 14 sys.path.append(os.path.join(host_paths.DIR_SOURCE_ROOT, 'build'))
15 import find_depot_tools # pylint: disable=import-error,unused-import 15 import find_depot_tools # pylint: disable=import-error,unused-import
16 import download_from_google_storage 16 import download_from_google_storage
17 17
18 CURRENT_MILESTONE = '58' 18 CURRENT_MILESTONE = '59'
19 DEFAULT_BUCKET = 'gs://chromium-android-tools/apks' 19 DEFAULT_BUCKET = 'gs://chromium-android-tools/apks'
20 DEFAULT_DOWNLOAD_PATH = os.path.join(os.path.dirname(__file__), 'apks') 20 DEFAULT_DOWNLOAD_PATH = os.path.join(os.path.dirname(__file__), 'apks')
21 DEFAULT_BUILDER = 'Android_Builder' 21 DEFAULT_BUILDER = 'Android_Builder'
22 DEFAULT_APK = 'MonochromePublic.apk' 22 DEFAULT_APK = 'MonochromePublic.apk'
23 23
24 24
25 def MaybeDownloadApk(builder, milestone, apk, download_path, bucket): 25 def MaybeDownloadApk(builder, milestone, apk, download_path, bucket):
26 """Returns path to the downloaded APK or None if not found.""" 26 """Returns path to the downloaded APK or None if not found."""
27 apk_path = os.path.join(download_path, builder, milestone, apk) 27 apk_path = os.path.join(download_path, builder, milestone, apk)
28 sha1_path = apk_path + '.sha1' 28 sha1_path = apk_path + '.sha1'
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 help='Builder name.') 66 help='Builder name.')
67 argparser.add_argument('--bucket', default=DEFAULT_BUCKET, 67 argparser.add_argument('--bucket', default=DEFAULT_BUCKET,
68 help='Google storage bucket where APK is stored.') 68 help='Google storage bucket where APK is stored.')
69 args = argparser.parse_args() 69 args = argparser.parse_args()
70 MaybeDownloadApk( 70 MaybeDownloadApk(
71 args.builder, args.milestone, args.apk, args.download_path, args.bucket) 71 args.builder, args.milestone, args.apk, args.download_path, args.bucket)
72 72
73 73
74 if __name__ == '__main__': 74 if __name__ == '__main__':
75 sys.exit(main()) 75 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | build/android/binary_size/apks/Android_Builder/59/ChromeModernPublic.apk.sha1 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698