LEFT | RIGHT |
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 ConfigParser | 6 import ConfigParser |
7 import json | 7 import json |
8 import os | 8 import os |
9 import re | 9 import re |
10 from urlparse import urlparse | 10 from urlparse import urlparse |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 | 184 |
185 dirname = metadata.get('general', 'basename') + '.safariextension' | 185 dirname = metadata.get('general', 'basename') + '.safariextension' |
186 for filename in files.keys(): | 186 for filename in files.keys(): |
187 files[os.path.join(dirname, filename)] = files.pop(filename) | 187 files[os.path.join(dirname, filename)] = files.pop(filename) |
188 | 188 |
189 if not devenv and keyFile: | 189 if not devenv and keyFile: |
190 from buildtools import xarfile | 190 from buildtools import xarfile |
191 xarfile.create(outFile, files, keyFile) | 191 xarfile.create(outFile, files, keyFile) |
192 else: | 192 else: |
193 files.zip(outFile) | 193 files.zip(outFile) |
LEFT | RIGHT |