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

Side by Side Diff: build.py

Issue 29559713: Issue 5581 - Multilocale build fails to copy gecko-unsigned-unaligned.apk (Closed)
Patch Set: Created Sept. 29, 2017, 6:57 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | 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/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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 subprocess.check_call([_MULTI_L10N_PATH, "--cfg", "adblockbrowser-cfg.py"], 79 subprocess.check_call([_MULTI_L10N_PATH, "--cfg", "adblockbrowser-cfg.py"],
80 env=build_environment) 80 env=build_environment)
81 81
82 dist_path = os.path.join(_ABB_PATH, obj_dir, "dist") 82 dist_path = os.path.join(_ABB_PATH, obj_dir, "dist")
83 arch_suffix = _ARCH_X86_I386 if architecture == _ARCH_X86 else _ARCH_ARM 83 arch_suffix = _ARCH_X86_I386 if architecture == _ARCH_X86 else _ARCH_ARM
84 [manifest_path] = glob.glob(os.path.join( 84 [manifest_path] = glob.glob(os.path.join(
85 dist_path, "fennec-*.multi.android-%s.json" % arch_suffix)) 85 dist_path, "fennec-*.multi.android-%s.json" % arch_suffix))
86 with open(manifest_path) as manifest_file: 86 with open(manifest_path) as manifest_file:
87 manifest = json.load(manifest_file) 87 manifest = json.load(manifest_file)
88 apk_name = "fennec-%s.multi.android-%s-unsigned-unaligned.apk" % ( 88 apk_name = "fennec-%s.multi.android-%s-unsigned-unaligned.apk" % (
89 manifest["moz_app_version"], architecture) 89 manifest["moz_app_version"], arch_suffix)
90 apk_path = os.path.join(dist_path, apk_name) 90 apk_path = os.path.join(dist_path, apk_name)
91 if build_mode == _BUILD_RELEASE: 91 if build_mode == _BUILD_RELEASE:
92 target_apk_name = "adblockbrowser-%s-%s.apk" % ( 92 target_apk_name = "adblockbrowser-%s-%s.apk" % (
93 manifest["moz_app_version"], architecture) 93 manifest["moz_app_version"], architecture)
94 else: 94 else:
95 target_apk_name = "adblockbrowser-%s.%s-%s.apk" % ( 95 target_apk_name = "adblockbrowser-%s.%s-%s.apk" % (
96 manifest["moz_app_version"], manifest["buildid"], architecture) 96 manifest["moz_app_version"], manifest["buildid"], architecture)
97 target_apk_path = os.path.join(dist_path, target_apk_name) 97 target_apk_path = os.path.join(dist_path, target_apk_name)
98 shutil.copyfile(apk_path, target_apk_path) 98 shutil.copyfile(apk_path, target_apk_path)
99 99
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld