diff options
Diffstat (limited to 'build.py')
-rw-r--r-- | build.py | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1,10 +1,17 @@ import os, os.path, zipfile
+os.chdir(r'components\interfaces')
+for f in os.listdir('.'):
+ print f
+ if f.startswith('rdI') and f.endswith('.idl'):
+ os.system(r'xpidl -m typelib -e ..\%s %s' % (f[:-3] + 'xpt',f))
+os.chdir(r'..\..')
+
xpi = zipfile.ZipFile('redirector-2.0.xpi','w')
for (root, folders, files) in os.walk('.'):
if not '.svn' in root:
for f in files:
- if not f.endswith(('.xpi', '.bat', '.py')):
+ if f.lower().endswith(('.rdf', '.manifest', '.js', '.xpt', '.png', '.css', '.dtd', '.properties', '.xul', '.html')):
xpi.write(os.path.join(root[2:],f))
xpi.close()
|