Delete bundles before regeneration

This commit is contained in:
Oleksii Shevchuk 2017-07-23 08:04:53 +03:00
parent 7761da59e9
commit 68b509c4b3
1 changed files with 2 additions and 0 deletions

View File

@ -540,6 +540,7 @@ echo "[+] Creating bundles"
TEMPLATES=`readlink -f ../../pupy/payload_templates` TEMPLATES=`readlink -f ../../pupy/payload_templates`
cd buildenv/lin64/usr/lib/python2.7 cd buildenv/lin64/usr/lib/python2.7
rm -f ${TEMPLATES}/linux-amd64.zip
zip -y \ zip -y \
-x "*.a" -x "*.o" -x "*.whl" -x "*.txt" -x "*.py" -x "*.pyc" \ -x "*.a" -x "*.o" -x "*.whl" -x "*.txt" -x "*.py" -x "*.pyc" \
-x "*test/*" -x "*tests/*" -x "*examples/*" \ -x "*test/*" -x "*tests/*" -x "*examples/*" \
@ -549,6 +550,7 @@ zip -y \
cd - cd -
cd buildenv/lin32/usr/lib/python2.7 cd buildenv/lin32/usr/lib/python2.7
rm -f ${TEMPLATES}/linux-x86.zip
zip -y \ zip -y \
-x "*.a" -x "*.o" -x "*.whl" -x "*.txt" -x "*.py" -x "*.pyc" \ -x "*.a" -x "*.o" -x "*.whl" -x "*.txt" -x "*.py" -x "*.pyc" \
-x "*test/*" -x "*tests/*" -x "*examples/*" \ -x "*test/*" -x "*tests/*" -x "*examples/*" \