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

Side by Side Diff: packagerSafari.py

Issue 29337971: Issue 3760 - Removed support for Opera builds (Closed)
Patch Set: Updated help text for -k option Created March 8, 2016, 6:26 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 | « manifest.json.tmpl ('k') | releaseAutomation.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 os 7 import os
8 import re 8 import re
9 import json 9 import json
10 import ConfigParser 10 import ConfigParser
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 allowAllDomains = True 71 allowAllDomains = True
72 continue 72 continue
73 73
74 allowedDomains.add(url.hostname) 74 allowedDomains.add(url.hostname)
75 75
76 return template.render( 76 return template.render(
77 basename=metadata.get('general', 'basename'), 77 basename=metadata.get('general', 'basename'),
78 version=params['version'], 78 version=params['version'],
79 releaseBuild=params['releaseBuild'], 79 releaseBuild=params['releaseBuild'],
80 name=catalog['name']['message'], 80 name=catalog['name']['message'],
81 description=catalog['description_safari']['message'], 81 description=catalog['description']['message'],
82 author=get_optional('general', 'author'), 82 author=get_optional('general', 'author'),
83 homepage=get_optional('general', 'homepage'), 83 homepage=get_optional('general', 'homepage'),
84 updateURL=get_optional('general', 'updateURL'), 84 updateURL=get_optional('general', 'updateURL'),
85 allowedDomains=allowedDomains, 85 allowedDomains=allowedDomains,
86 allowAllDomains=allowAllDomains, 86 allowAllDomains=allowAllDomains,
87 allowSecurePages=allowSecurePages, 87 allowSecurePages=allowSecurePages,
88 startScripts=(get_optional('contentScripts', 'document_start') or '').split( ), 88 startScripts=(get_optional('contentScripts', 'document_start') or '').split( ),
89 endScripts=(get_optional('contentScripts', 'document_end') or '').split(), 89 endScripts=(get_optional('contentScripts', 'document_end') or '').split(),
90 menus=parse_section('menus', 2), 90 menus=parse_section('menus', 2),
91 toolbarItems=parse_section('toolbar_items'), 91 toolbarItems=parse_section('toolbar_items'),
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 fixAbsoluteUrls(files) 262 fixAbsoluteUrls(files)
263 263
264 dirname = metadata.get('general', 'basename') + '.safariextension' 264 dirname = metadata.get('general', 'basename') + '.safariextension'
265 for filename in files.keys(): 265 for filename in files.keys():
266 files[os.path.join(dirname, filename)] = files.pop(filename) 266 files[os.path.join(dirname, filename)] = files.pop(filename)
267 267
268 if not devenv and keyFile: 268 if not devenv and keyFile:
269 createSignedXarArchive(outFile, files, certs, key) 269 createSignedXarArchive(outFile, files, certs, key)
270 else: 270 else:
271 files.zip(outFile) 271 files.zip(outFile)
OLDNEW
« no previous file with comments | « manifest.json.tmpl ('k') | releaseAutomation.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld