OLD | NEW |
1 # coding: utf-8 | |
2 | |
3 # 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 |
4 # 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 |
5 # 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/. |
6 | 4 |
7 import os | 5 import os |
8 import re | 6 import re |
9 import json | 7 import json |
10 import ConfigParser | 8 import ConfigParser |
11 from urlparse import urlparse | 9 from urlparse import urlparse |
12 | 10 |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 fixAbsoluteUrls(files) | 268 fixAbsoluteUrls(files) |
271 | 269 |
272 dirname = metadata.get('general', 'basename') + '.safariextension' | 270 dirname = metadata.get('general', 'basename') + '.safariextension' |
273 for filename in files.keys(): | 271 for filename in files.keys(): |
274 files[os.path.join(dirname, filename)] = files.pop(filename) | 272 files[os.path.join(dirname, filename)] = files.pop(filename) |
275 | 273 |
276 if not devenv and keyFile: | 274 if not devenv and keyFile: |
277 createSignedXarArchive(outFile, files, certs, key) | 275 createSignedXarArchive(outFile, files, certs, key) |
278 else: | 276 else: |
279 files.zip(outFile) | 277 files.zip(outFile) |
OLD | NEW |