OLD | NEW |
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 sys | 8 import sys |
9 import re | 9 import re |
10 import hashlib | 10 import hashlib |
(...skipping 14 matching lines...) Expand all Loading... |
25 'emusic': 'dlm@emusic.com', | 25 'emusic': 'dlm@emusic.com', |
26 'fennec': '{a23983c0-fd0e-11dc-95ff-0800200c9a66}', | 26 'fennec': '{a23983c0-fd0e-11dc-95ff-0800200c9a66}', |
27 'fennec2': '{aa3c5121-dab2-40e2-81ca-7ea25febc110}', | 27 'fennec2': '{aa3c5121-dab2-40e2-81ca-7ea25febc110}', |
28 'firefox': '{ec8030f7-c20a-464f-9b0e-13a3a9e97384}', | 28 'firefox': '{ec8030f7-c20a-464f-9b0e-13a3a9e97384}', |
29 'midbrowser': '{aa5ca914-c309-495d-91cf-3141bbb04115}', | 29 'midbrowser': '{aa5ca914-c309-495d-91cf-3141bbb04115}', |
30 'prism': 'prism@developer.mozilla.org', | 30 'prism': 'prism@developer.mozilla.org', |
31 'seamonkey': '{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}', | 31 'seamonkey': '{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}', |
32 'songbird': 'songbird@songbirdnest.com', | 32 'songbird': 'songbird@songbirdnest.com', |
33 'thunderbird': '{3550f703-e582-4d05-9a08-453d09bdfdc6}', | 33 'thunderbird': '{3550f703-e582-4d05-9a08-453d09bdfdc6}', |
34 'toolkit': 'toolkit@mozilla.org', | 34 'toolkit': 'toolkit@mozilla.org', |
| 35 'adblockbrowser': '{55aba3ac-94d3-41a8-9e25-5c21fe874539}', |
35 } | 36 } |
36 | 37 |
37 defaultLocale = 'en-US' | 38 defaultLocale = 'en-US' |
38 | 39 |
39 def getChromeDir(baseDir): | 40 def getChromeDir(baseDir): |
40 return os.path.join(baseDir, 'chrome') | 41 return os.path.join(baseDir, 'chrome') |
41 | 42 |
42 def getLocalesDir(baseDir): | 43 def getLocalesDir(baseDir): |
43 return os.path.join(getChromeDir(baseDir), 'locale') | 44 return os.path.join(getChromeDir(baseDir), 'locale') |
44 | 45 |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 if metadata.has_section('preprocess'): | 355 if metadata.has_section('preprocess'): |
355 files.preprocess([f for f, _ in metadata.items('preprocess')]) | 356 files.preprocess([f for f, _ in metadata.items('preprocess')]) |
356 if keyFile: | 357 if keyFile: |
357 signFiles(files, keyFile) | 358 signFiles(files, keyFile) |
358 files.zip(outFile, sortKey=lambda x: '!' if x == 'META-INF/zigbert.rsa' else x
) | 359 files.zip(outFile, sortKey=lambda x: '!' if x == 'META-INF/zigbert.rsa' else x
) |
359 | 360 |
360 def autoInstall(baseDir, type, host, port, multicompartment=False): | 361 def autoInstall(baseDir, type, host, port, multicompartment=False): |
361 fileBuffer = StringIO() | 362 fileBuffer = StringIO() |
362 createBuild(baseDir, type=type, outFile=fileBuffer, multicompartment=multicomp
artment) | 363 createBuild(baseDir, type=type, outFile=fileBuffer, multicompartment=multicomp
artment) |
363 urllib.urlopen('http://%s:%s/' % (host, port), data=fileBuffer.getvalue()) | 364 urllib.urlopen('http://%s:%s/' % (host, port), data=fileBuffer.getvalue()) |
OLD | NEW |