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

Side by Side Diff: packagerSafari.py

Issue 4702306650030080: Issue 2121 - Release automation fails to put generated packages into the right directory (Closed)
Patch Set: Created March 10, 2015, 7:17 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 # 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 201
202 subprocess.check_call(['xar', '--inject-sig', signature_filename, '-f', outF ile]) 202 subprocess.check_call(['xar', '--inject-sig', signature_filename, '-f', outF ile])
203 finally: 203 finally:
204 os.unlink(signature_filename) 204 os.unlink(signature_filename)
205 205
206 def createBuild(baseDir, type, outFile=None, buildNum=None, releaseBuild=False, keyFile=None, devenv=False): 206 def createBuild(baseDir, type, outFile=None, buildNum=None, releaseBuild=False, keyFile=None, devenv=False):
207 metadata = readMetadata(baseDir, type) 207 metadata = readMetadata(baseDir, type)
208 version = getBuildVersion(baseDir, metadata, releaseBuild, buildNum) 208 version = getBuildVersion(baseDir, metadata, releaseBuild, buildNum)
209 209
210 if not outFile: 210 if not outFile:
211 outFile = getDefaultFileName(baseDir, metadata, version, 'safariextz' if key File else 'zip') 211 outFile = getDefaultFileName(metadata, version, 'safariextz' if keyFile else 'zip')
212 212
213 params = { 213 params = {
214 'type': type, 214 'type': type,
215 'baseDir': baseDir, 215 'baseDir': baseDir,
216 'releaseBuild': releaseBuild, 216 'releaseBuild': releaseBuild,
217 'version': version, 217 'version': version,
218 'devenv': devenv, 218 'devenv': devenv,
219 'metadata': metadata, 219 'metadata': metadata,
220 } 220 }
221 221
(...skipping 26 matching lines...) Expand all
248 fixAbsoluteUrls(files) 248 fixAbsoluteUrls(files)
249 249
250 dirname = metadata.get('general', 'basename') + '.safariextension' 250 dirname = metadata.get('general', 'basename') + '.safariextension'
251 for filename in files.keys(): 251 for filename in files.keys():
252 files[os.path.join(dirname, filename)] = files.pop(filename) 252 files[os.path.join(dirname, filename)] = files.pop(filename)
253 253
254 if not devenv and keyFile: 254 if not devenv and keyFile:
255 createSignedXarArchive(outFile, files, keyFile) 255 createSignedXarArchive(outFile, files, keyFile)
256 else: 256 else:
257 files.zip(outFile) 257 files.zip(outFile)
OLDNEW
« packagerChrome.py ('K') | « packagerGecko.py ('k') | releaseAutomation.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld