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

Side by Side Diff: packagerChrome.py

Issue 29334229: Issue 3532 - Stop generating animation images at build time (Closed)
Patch Set: Removed imageCompression.py Created Jan. 22, 2016, 3:50 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 | « imageConversion.py ('k') | packagerSafari.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # coding: utf-8 1 # coding: utf-8
2 2
3 # This Source Code Form is subject to the terms of the Mozilla Public 3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this 4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 6
7 import sys 7 import sys
8 import os 8 import os
9 import re 9 import re
10 import json 10 import json
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 mapped = metadata.items('mapping') if metadata.has_section('mapping') else [] 329 mapped = metadata.items('mapping') if metadata.has_section('mapping') else []
330 files = Files(getPackageFiles(params), getIgnoredFiles(params), 330 files = Files(getPackageFiles(params), getIgnoredFiles(params),
331 process=lambda path, data: processFile(path, data, params)) 331 process=lambda path, data: processFile(path, data, params))
332 332
333 files.readMappedFiles(mapped) 333 files.readMappedFiles(mapped)
334 files.read(baseDir, skip=[opt for opt, _ in mapped]) 334 files.read(baseDir, skip=[opt for opt, _ in mapped])
335 335
336 if metadata.has_section('convert_js'): 336 if metadata.has_section('convert_js'):
337 convertJS(params, files) 337 convertJS(params, files)
338 338
339 if metadata.has_section('convert_img'):
340 from imageConversion import convertImages
341 convertImages(params, files)
342
343 if metadata.has_section('preprocess'): 339 if metadata.has_section('preprocess'):
344 files.preprocess( 340 files.preprocess(
345 [f for f, _ in metadata.items('preprocess')], 341 [f for f, _ in metadata.items('preprocess')],
346 {'needsExt': True} 342 {'needsExt': True}
347 ) 343 )
348 344
349 if metadata.has_section('import_locales'): 345 if metadata.has_section('import_locales'):
350 importGeckoLocales(params, files) 346 importGeckoLocales(params, files)
351 347
352 files['manifest.json'] = createManifest(params, files) 348 files['manifest.json'] = createManifest(params, files)
(...skipping 15 matching lines...) Expand all
368 files['qunit/index.html'] = createScriptPage(params, 'testIndex.html.tmpl', 364 files['qunit/index.html'] = createScriptPage(params, 'testIndex.html.tmpl',
369 ('general', 'testScripts')) 365 ('general', 'testScripts'))
370 366
371 zipdata = files.zipToString() 367 zipdata = files.zipToString()
372 signature = None 368 signature = None
373 pubkey = None 369 pubkey = None
374 if keyFile != None: 370 if keyFile != None:
375 signature = signBinary(zipdata, keyFile) 371 signature = signBinary(zipdata, keyFile)
376 pubkey = getPublicKey(keyFile) 372 pubkey = getPublicKey(keyFile)
377 writePackage(outFile, pubkey, signature, zipdata) 373 writePackage(outFile, pubkey, signature, zipdata)
OLDNEW
« no previous file with comments | « imageConversion.py ('k') | packagerSafari.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld