Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: build.py

Issue 29527871: Issue 5581 - Multilocale build fails to copy gecko-unsigned-unaligned.apk (Closed)
Left Patch Set: Created Aug. 25, 2017, 10:21 p.m.
Right Patch Set: Uncommenting code Created Aug. 26, 2017, 1:37 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 import glob 3 import glob
4 import json 4 import json
5 import os 5 import os
6 import re 6 import re
7 import shutil 7 import shutil
8 import string 8 import string
9 import subprocess 9 import subprocess
10 import sys 10 import sys
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 if not do_build and not do_sign: 133 if not do_build and not do_sign:
134 print_usage() 134 print_usage()
135 sys.exit(2) 135 sys.exit(2)
136 136
137 if do_sign: 137 if do_sign:
138 if len(sys.argv) < 3: 138 if len(sys.argv) < 3:
139 print_usage() 139 print_usage()
140 sys.exit(3) 140 sys.exit(3)
141 apk_path = sys.argv[2] 141 apk_path = sys.argv[2]
142 142
143 # subprocess.check_call([_ENSURE_DEPENDENCIES_PATH]) 143 subprocess.check_call([_ENSURE_DEPENDENCIES_PATH])
144 import config 144 import config
145 145
146 error_msg = "Invalid %s, check config.py. Supported %s: %s" 146 error_msg = "Invalid %s, check config.py. Supported %s: %s"
147 distribution_mode = config.DISTRIBUTION_MODE 147 distribution_mode = config.DISTRIBUTION_MODE
148 if distribution_mode not in _DIST_MODES: 148 if distribution_mode not in _DIST_MODES:
149 print >>sys.stderr, error_msg % ( 149 print >>sys.stderr, error_msg % (
150 "distribution mode", "distribution modes", _DIST_MODES) 150 "distribution mode", "distribution modes", _DIST_MODES)
151 sys.exit(4) 151 sys.exit(4)
152 152
153 build_mode = config.BUILD_MODE 153 build_mode = config.BUILD_MODE
154 if build_mode not in _BUILD_MODES: 154 if build_mode not in _BUILD_MODES:
155 print >>sys.stderr, error_msg % ( 155 print >>sys.stderr, error_msg % (
156 "build mode", "build modes", _BUILD_MODES) 156 "build mode", "build modes", _BUILD_MODES)
157 sys.exit(5) 157 sys.exit(5)
158 158
159 architecture = config.ARCHITECTURE 159 architecture = config.ARCHITECTURE
160 if architecture not in _ARCHS: 160 if architecture not in _ARCHS:
161 print >>sys.stderr, error_msg % ( 161 print >>sys.stderr, error_msg % (
162 "architecture", "architectures", _ARCHS ) 162 "architecture", "architectures", _ARCHS )
163 sys.exit(6) 163 sys.exit(6)
164 164
165 if do_build: 165 if do_build:
166 apk_path = _build(architecture, distribution_mode, build_mode, 166 apk_path = _build(architecture, distribution_mode, build_mode,
167 config.ANDROID_SDK_PATH, config.ANDROID_NDK_PATH) 167 config.ANDROID_SDK_PATH, config.ANDROID_NDK_PATH)
168 if do_sign: 168 if do_sign:
169 _sign(apk_path, config.ANDROID_KEYSTORE_PATH, config.ANDROID_KEY_NAME, 169 _sign(apk_path, config.ANDROID_KEYSTORE_PATH, config.ANDROID_KEY_NAME,
170 config.ANDROID_SDK_PATH) 170 config.ANDROID_SDK_PATH)
171 else: 171 else:
172 print apk_path 172 print apk_path
LEFTRIGHT
« no previous file | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld