fix #22 (delete ZIP files after extraction)

Else they just waste space.
This commit is contained in:
Paul Liverman 2015-04-30 13:56:27 -07:00
parent a54dd3fc58
commit 8932240591

9
build
View File

@ -68,6 +68,9 @@ if [ ! -r "$win32Dir/love-0.9.1-win32/love.exe" ]; then
echo "Extracting win32src..." echo "Extracting win32src..."
unzip -q "$win32Dir/love32.zip" -d "$win32Dir" unzip -q "$win32Dir/love32.zip" -d "$win32Dir"
echo " Done." echo " Done."
echo "Deleting ZIP file..."
rm -f "$win32Dir/love32.zip"
echo " Done."
fi fi
if [ ! -r "$win64Dir/love-0.9.1-win64/love.exe" ]; then if [ ! -r "$win64Dir/love-0.9.1-win64/love.exe" ]; then
@ -78,6 +81,9 @@ if [ ! -r "$win64Dir/love-0.9.1-win64/love.exe" ]; then
echo "Extracting win64src..." echo "Extracting win64src..."
unzip -q "$win64Dir/love64.zip" -d "$win64Dir" unzip -q "$win64Dir/love64.zip" -d "$win64Dir"
echo " Done." echo " Done."
echo "Deleting ZIP file..."
rm -f "$win64Dir/love64.zip"
echo " Done."
fi fi
if [ ! -d "$osx10Dir/love.app" ]; then if [ ! -d "$osx10Dir/love.app" ]; then
@ -92,6 +98,9 @@ if [ ! -d "$osx10Dir/love.app" ]; then
# the Info.plist is generated each time a package is built, we don't need a copy here # the Info.plist is generated each time a package is built, we don't need a copy here
rm -f "$osx10Dir/love.app/Contents/Info.plist" rm -f "$osx10Dir/love.app/Contents/Info.plist"
echo " Done." echo " Done."
echo "Deleting ZIP file..."
rm -f "$osx10Dir/loveOSX.zip"
echo " Done."
fi fi
# build executables and zip files for them # build executables and zip files for them