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

Side by Side Diff: releaseAutomation.py

Issue 29931574: Issue 7083 - Adapt release automation for locales being located in adblockplusui (Closed)
Patch Set: Created Oct. 31, 2018, midnight
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 | « localeTools.py ('k') | 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 # This Source Code Form is subject to the terms of the Mozilla Public 1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this 2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 4
5 from __future__ import print_function 5 from __future__ import print_function
6 6
7 import os 7 import os
8 import operator 8 import operator
9 import re 9 import re
10 import codecs 10 import codecs
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 logging.error(reason) 248 logging.error(reason)
249 return 2 249 return 2
250 250
251 downloads = [] 251 downloads = []
252 # Read extension name from first provided platform 252 # Read extension name from first provided platform
253 locale_config = read_locale_config( 253 locale_config = read_locale_config(
254 baseDir, target_platforms[0], 254 baseDir, target_platforms[0],
255 readMetadata(baseDir, target_platforms[0])) 255 readMetadata(baseDir, target_platforms[0]))
256 default_locale_path = os.path.join(locale_config['base_path'], 256 default_locale_path = os.path.join(locale_config['base_path'],
257 locale_config['default_locale'], 257 locale_config['default_locale'],
258 'messages.json') 258 'manifest.json')
259 with open(default_locale_path, 'r') as fp: 259 with open(default_locale_path, 'r') as fp:
260 extension_name = json.load(fp)['name']['message'] 260 extension_name = json.load(fp)['name']['message']
261 261
262 for platform in target_platforms: 262 for platform in target_platforms:
263 used_key_file = None 263 used_key_file = None
264 if platform == 'chrome': 264 if platform == 'chrome':
265 # Currently, only chrome builds are provided by us as signed 265 # Currently, only chrome builds are provided by us as signed
266 # packages. Create an unsigned package in base_dir which should be 266 # packages. Create an unsigned package in base_dir which should be
267 # uploaded to the Chrome Web Store 267 # uploaded to the Chrome Web Store
268 create_build(platform, baseDir, baseDir, version) 268 create_build(platform, baseDir, baseDir, version)
(...skipping 21 matching lines...) Expand all
290 290
291 release_tag(baseDir, release_identifier, extension_name) 291 release_tag(baseDir, release_identifier, extension_name)
292 292
293 # Now add the downloads and commit 293 # Now add the downloads and commit
294 subprocess.check_call(['hg', 'add', '-R', downloads_repo] + downloads) 294 subprocess.check_call(['hg', 'add', '-R', downloads_repo] + downloads)
295 release_commit(downloads_repo, extension_name, version, target_platforms) 295 release_commit(downloads_repo, extension_name, version, target_platforms)
296 296
297 # Push all changes 297 # Push all changes
298 subprocess.check_call(['hg', 'push', '-R', baseDir]) 298 subprocess.check_call(['hg', 'push', '-R', baseDir])
299 subprocess.check_call(['hg', 'push', '-R', downloads_repo]) 299 subprocess.check_call(['hg', 'push', '-R', downloads_repo])
OLDNEW
« no previous file with comments | « localeTools.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld