OLD | NEW |
1 # coding: utf-8 | 1 # coding: utf-8 |
2 | 2 |
3 # This Source Code is subject to the terms of the Mozilla Public License | 3 # This Source Code is subject to the terms of the Mozilla Public License |
4 # version 2.0 (the "License"). You can obtain a copy of the License at | 4 # version 2.0 (the "License"). You can obtain a copy of the License at |
5 # http://mozilla.org/MPL/2.0/. | 5 # http://mozilla.org/MPL/2.0/. |
6 | 6 |
7 import os, sys, re, subprocess, jinja2, buildtools, codecs, hashlib, base64, shu
til, urllib, json | 7 import os, sys, re, subprocess, jinja2, buildtools, codecs, hashlib, base64, shu
til, urllib, json |
8 from ConfigParser import SafeConfigParser | 8 from ConfigParser import SafeConfigParser |
9 from StringIO import StringIO | 9 from StringIO import StringIO |
10 from zipfile import ZipFile, ZIP_STORED, ZIP_DEFLATED | 10 from zipfile import ZipFile, ZIP_STORED, ZIP_DEFLATED |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 if not 'bootstrap.js' in files: | 376 if not 'bootstrap.js' in files: |
377 addMissingFiles(baseDir, params, files) | 377 addMissingFiles(baseDir, params, files) |
378 if keyFile: | 378 if keyFile: |
379 signFiles(files, keyFile) | 379 signFiles(files, keyFile) |
380 writeXPI(files, outFile) | 380 writeXPI(files, outFile) |
381 | 381 |
382 def autoInstall(baseDir, host, port, multicompartment=False): | 382 def autoInstall(baseDir, host, port, multicompartment=False): |
383 fileBuffer = StringIO() | 383 fileBuffer = StringIO() |
384 createBuild(baseDir, outFile=fileBuffer, multicompartment=multicompartment) | 384 createBuild(baseDir, outFile=fileBuffer, multicompartment=multicompartment) |
385 urllib.urlopen('http://%s:%s/' % (host, port), data=fileBuffer.getvalue()) | 385 urllib.urlopen('http://%s:%s/' % (host, port), data=fileBuffer.getvalue()) |
OLD | NEW |