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

Side by Side Diff: packagerChrome.py

Issue 29345751: Issue 4028 - Add support for Edge extensions to buildtools (Closed)
Patch Set: Address comments on patch set 4 Created July 8, 2016, 4:46 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
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 import sys 5 import sys
6 import os 6 import os
7 import re 7 import re
8 import json 8 import json
9 import struct 9 import struct
10 import io 10 import io
11 from StringIO import StringIO 11 from StringIO import StringIO
12 12
13 import packager 13 from packager import (readMetadata, getDefaultFileName, getBuildVersion,
14 from packager import readMetadata, getMetadataPath, getDefaultFileName, getBuild Version, getTemplate, Files 14 getTemplate, Files)
15 15
16 defaultLocale = 'en_US' 16 defaultLocale = 'en_US'
17 17
18 18
19 def getIgnoredFiles(params): 19 def getIgnoredFiles(params):
20 return {'store.description'} 20 return {'store.description'}
21 21
22 22
23 def getPackageFiles(params): 23 def getPackageFiles(params):
24 result = set(('_locales', 'icons', 'jquery-ui', 'lib', 'skin', 'ui', 'ext')) 24 result = set(('_locales', 'icons', 'jquery-ui', 'lib', 'skin', 'ui', 'ext'))
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 files['qunit/index.html'] = createScriptPage(params, 'testIndex.html.tmp l', 375 files['qunit/index.html'] = createScriptPage(params, 'testIndex.html.tmp l',
376 ('general', 'testScripts')) 376 ('general', 'testScripts'))
377 377
378 zipdata = files.zipToString() 378 zipdata = files.zipToString()
379 signature = None 379 signature = None
380 pubkey = None 380 pubkey = None
381 if keyFile != None: 381 if keyFile != None:
382 signature = signBinary(zipdata, keyFile) 382 signature = signBinary(zipdata, keyFile)
383 pubkey = getPublicKey(keyFile) 383 pubkey = getPublicKey(keyFile)
384 writePackage(outFile, pubkey, signature, zipdata) 384 writePackage(outFile, pubkey, signature, zipdata)
OLDNEW

Powered by Google App Engine
This is Rietveld