Skip to content
This repository was archived by the owner on Nov 4, 2020. It is now read-only.

Commit d986126

Browse files
committed
Use custom python zip!
1 parent 4167b63 commit d986126

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

makexpi.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ cd src
126126

127127
# Build the XPI!
128128
rm -f "../$XPI_NAME"
129-
zip -q -X -9r "../$XPI_NAME" . "-x@../.build_exclusions"
129+
#zip -q -X -9r "../$XPI_NAME" . "-x@../.build_exclusions"
130+
131+
python ../utils/create_xpi.py "../$XPI_NAME"
130132

131133
ret="$?"
132134
if [ "$ret" != 0 ]; then

utils/create_xpi.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import os
2+
import zipfile
3+
import sys
4+
import time
5+
6+
xpiName = sys.argv[1]
7+
xpiFile = zipfile.ZipFile(xpiName, mode='w')
8+
9+
10+
for root,subfolders,files in os.walk('.'):
11+
for fi in files:
12+
f = os.path.join(root,fi)
13+
info = zipfile.ZipInfo(f, time.gmtime(1378343307))
14+
xpiFile.writestr(info, '')
15+
16+
xpiFile.close()

0 commit comments

Comments
 (0)