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

Side by Side Diff: packagerChrome.py

Issue 6116696976785408: Issue 1590 - Add devenv support for Safari (Closed)
Patch Set: Created Nov. 21, 2014, 10:32 a.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 | « build.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, os, re, json, struct 7 import sys, os, re, json, struct
8 from StringIO import StringIO 8 from StringIO import StringIO
9 9
10 import packager 10 import packager
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 'lib/info.js' not in files): 390 'lib/info.js' not in files):
391 files['lib/info.js'] = createInfoModule(params) 391 files['lib/info.js'] = createInfoModule(params)
392 392
393 zipdata = files.zipToString() 393 zipdata = files.zipToString()
394 signature = None 394 signature = None
395 pubkey = None 395 pubkey = None
396 if keyFile != None: 396 if keyFile != None:
397 signature = signBinary(zipdata, keyFile) 397 signature = signBinary(zipdata, keyFile)
398 pubkey = getPublicKey(keyFile) 398 pubkey = getPublicKey(keyFile)
399 writePackage(outFile, pubkey, signature, zipdata) 399 writePackage(outFile, pubkey, signature, zipdata)
400
401 def createDevEnv(baseDir, type):
402 fileBuffer = StringIO()
403 createBuild(baseDir, type=type, outFile=fileBuffer, devenv=True, releaseBuild= True)
404
405 from zipfile import ZipFile
406 zip = ZipFile(StringIO(fileBuffer.getvalue()), 'r')
407 zip.extractall(os.path.join(baseDir, 'devenv'))
408 zip.close()
OLDNEW
« no previous file with comments | « build.py ('k') | packagerSafari.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld