Skip to content

Commit b36e5fb

Browse files
committed
Remove compression for now
1 parent e1dafe1 commit b36e5fb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

utils/create_xpi.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@
1313
exclusionsFile = sys.argv[2]
1414
exclusions = []
1515
tmpfile = '../pkg/tmp.xpi'
16+
compress = zipfile.ZIP_STORED
1617

1718
with open(exclusionsFile) as f:
1819
for line in f:
1920
exclusions.extend(glob.glob(line.strip()))
2021

21-
xpiFile = zipfile.ZipFile(xpiName, mode='w')
22+
xpiFile = zipfile.ZipFile(xpiName, mode='w', compression=compress)
2223

2324
def createTmpZipInfo():
2425
"""
@@ -30,7 +31,7 @@ def createTmpZipInfo():
3031
for fi in files:
3132
filename = os.path.join(root,fi)
3233
if filename not in map(lambda x: './'+x, exclusions):
33-
xpiFileTmp.write(filename, compress_type=zipfile.ZIP_DEFLATED)
34+
xpiFileTmp.write(filename, compress_type=compress)
3435
xpiFileTmp.close()
3536
return xpiFileTmp.infolist()
3637

0 commit comments

Comments
 (0)