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

Delta Between Two Patch Sets: packagerEdge.py

Issue 29367148: Issue 4720 - Edge packager does not support devenv (Closed)
Left Patch Set: Created Dec. 9, 2016, 6:19 a.m.
Right Patch Set: Rebase Created Sept. 25, 2017, 8:23 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « build.py ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
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 base64 5 import base64
6 import hashlib 6 import hashlib
7 import json 7 import json
8 import mimetypes 8 import mimetypes
9 import os 9 import os
10 import zipfile 10 import zipfile
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 packagerChrome.convertJS(params, files) 181 packagerChrome.convertJS(params, files)
182 182
183 if metadata.has_section('preprocess'): 183 if metadata.has_section('preprocess'):
184 files.preprocess(metadata.options('preprocess'), {'needsExt': True}) 184 files.preprocess(metadata.options('preprocess'), {'needsExt': True})
185 185
186 if metadata.has_section('import_locales'): 186 if metadata.has_section('import_locales'):
187 packagerChrome.import_locales(params, files) 187 packagerChrome.import_locales(params, files)
188 188
189 files['manifest.json'] = packagerChrome.createManifest(params, files) 189 files['manifest.json'] = packagerChrome.createManifest(params, files)
190 190
191 if devenv:
Sebastian Noack 2017/09/25 15:58:52 This logic is duplicated in packagerChrome.py. Can
192 import buildtools
193 import random
194 files.read(os.path.join(buildtools.__path__[0],
195 'chromeDevenvPoller__.js'), relpath='devenvPoller__.js')
196 files['devenvVersion__'] = str(random.random())
197
191 move_files_to_extension(files) 198 move_files_to_extension(files)
192 199
193 if metadata.has_section('appx_assets'): 200 if metadata.has_section('appx_assets'):
194 for name, path in metadata.items('appx_assets'): 201 for name, path in metadata.items('appx_assets'):
195 path = os.path.join(baseDir, path) 202 path = os.path.join(baseDir, path)
196 files.read(path, '{}/{}'.format(ASSETS_DIR, name)) 203 files.read(path, '{}/{}'.format(ASSETS_DIR, name))
197 204
198 files[MANIFEST] = create_appx_manifest(params, files, 205 files[MANIFEST] = create_appx_manifest(params, files,
199 buildNum, releaseBuild) 206 buildNum, releaseBuild)
200 files[BLOCKMAP] = create_appx_blockmap(files) 207 files[BLOCKMAP] = create_appx_blockmap(files)
201 files[CONTENT_TYPES] = create_content_types_map(files.keys() + [BLOCKMAP]) 208 files[CONTENT_TYPES] = create_content_types_map(files.keys() + [BLOCKMAP])
202 209
203 files.zip(outfile, compression=zipfile.ZIP_STORED) 210 files.zip(outfile, compression=zipfile.ZIP_STORED)
LEFTRIGHT
« build.py ('k') | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld