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

Side by Side Diff: packagerSafari.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 | « packagerChrome.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 # 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 os 7 import os
8 import re 8 import re
9 import json 9 import json
10 import ConfigParser 10 import ConfigParser
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 230
231 mapped = metadata.items('mapping') if metadata.has_section('mapping') else [] 231 mapped = metadata.items('mapping') if metadata.has_section('mapping') else []
232 files = Files(getPackageFiles(params), getIgnoredFiles(params), 232 files = Files(getPackageFiles(params), getIgnoredFiles(params),
233 process=lambda path, data: processFile(path, data, params)) 233 process=lambda path, data: processFile(path, data, params))
234 files.readMappedFiles(mapped) 234 files.readMappedFiles(mapped)
235 files.read(baseDir, skip=[opt for opt, _ in mapped]) 235 files.read(baseDir, skip=[opt for opt, _ in mapped])
236 236
237 if metadata.has_section('convert_js'): 237 if metadata.has_section('convert_js'):
238 convertJS(params, files) 238 convertJS(params, files)
239 239
240 if metadata.has_section('convert_img'):
241 from imageConversion import convertImages
242 convertImages(params, files)
243
244 if metadata.has_section('preprocess'): 240 if metadata.has_section('preprocess'):
245 files.preprocess( 241 files.preprocess(
246 [f for f, _ in metadata.items('preprocess')], 242 [f for f, _ in metadata.items('preprocess')],
247 {'needsExt': True} 243 {'needsExt': True}
248 ) 244 )
249 245
250 if metadata.has_section('import_locales'): 246 if metadata.has_section('import_locales'):
251 importGeckoLocales(params, files) 247 importGeckoLocales(params, files)
252 248
253 if metadata.has_option('general', 'testScripts'): 249 if metadata.has_option('general', 'testScripts'):
(...skipping 12 matching lines...) Expand all
266 fixAbsoluteUrls(files) 262 fixAbsoluteUrls(files)
267 263
268 dirname = metadata.get('general', 'basename') + '.safariextension' 264 dirname = metadata.get('general', 'basename') + '.safariextension'
269 for filename in files.keys(): 265 for filename in files.keys():
270 files[os.path.join(dirname, filename)] = files.pop(filename) 266 files[os.path.join(dirname, filename)] = files.pop(filename)
271 267
272 if not devenv and keyFile: 268 if not devenv and keyFile:
273 createSignedXarArchive(outFile, files, certs, key) 269 createSignedXarArchive(outFile, files, certs, key)
274 else: 270 else:
275 files.zip(outFile) 271 files.zip(outFile)
OLDNEW
« no previous file with comments | « packagerChrome.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld