added more output..yes..that makes sense

This commit is contained in:
Guard13007 2014-11-20 12:44:16 -08:00
parent 4aabdff651
commit d94284e5e7

12
build
View File

@ -23,6 +23,7 @@ cd "$sourceDir"
# build .love file
echo "Building $packageName (version $version)... (.love file)"
zip -r -X -q "$outputDir/$packageName-$version.love" ./*
echo "Done."
# check if executables exist, if not, download them
# assumes if the exe exists, everything else does too
@ -30,24 +31,30 @@ if [ ! -r "$win32Dir/love-0.9.1-win32/love.exe" ]; then
mkdir -p "$win32Dir"
echo "Downloading win32src..."
wget -nv -O "$win32Dir/love32.zip" https://bitbucket.org/rude/love/downloads/love-0.9.1-win32.zip
echo "Extracting win32src..."
unzip -q "$win32Dir/love32.zip" -d "$win32Dir"
echo "Done."
fi
if [ ! -r "$win64Dir/love-0.9.1-win64/love.exe" ]; then
mkdir -p "$win64Dir"
echo "Downloading win64src..."
wget -nv -O "$win64Dir/love64.zip" https://bitbucket.org/rude/love/downloads/love-0.9.1-win64.zip
echo "Extracting win64src..."
unzip -q "$win64Dir/love64.zip" -d "$win64Dir"
echo "Done."
fi
if [ ! -d "$osx10Dir/love.app" ]; then
mkdir -p "$osx10Dir"
echo "Downloading osx10src..."
wget -nv -O "$osx10Dir/loveOSX.zip" https://bitbucket.org/rude/love/downloads/love-0.9.1-macosx-x64.zip
echo "Extracting osx10src..."
unzip -q "$osx10Dir/loveOSX.zip" -d "$osx10Dir"
# delete Mac crao (for some reason can't not unzip it *shrugs*)
rm -rf "$osx10Dir/__MACOSX"
# the Info.plist is overwritten each time the app is built, so it is not fixed here.
echo "Done."
fi
# build executables and zip files for them
@ -63,6 +70,7 @@ cp ./license.txt ./LOVE-license.txt
zip -r -X -q "$outputDir/$packageName-${version}_win32.zip" ./LOVE-license.txt
cd "$includes"
zip -r -X -q "$outputDir/$packageName-${version}_win32.zip" ./*
echo "Done."
echo
echo "Building $packageName (version $version)... (win64 zip)"
@ -75,6 +83,7 @@ cp ./license.txt ./LOVE-license.txt
zip -r -X -q "$outputDir/$packageName-${version}_win64.zip" ./LOVE-license.txt
cd "$includes"
zip -r -X -q "$outputDir/$packageName-${version}_win64.zip" ./*
echo "Done."
if [ $macInfoPlistFixed = true ]; then
echo
@ -93,7 +102,9 @@ if [ $macInfoPlistFixed = true ]; then
zip -r -X -q "$outputDir/$packageName-${version}_osx.zip" "./$packageName.app"
cd "$includes"
zip -r -X -q "$outputDir/$packageName-${version}_osx.zip" ./*
echo "Done."
else
echo
echo "WARN: Mac packaging disabled."
echo " See README.md for information."
fi
@ -106,6 +117,7 @@ cp "$win64Dir/love-0.9.1-win64/LOVE-license.txt" ./LOVE-license.txt
zip -r -X -q "./$packageName-${version}_linux.zip" ./LOVE-license.txt
cd "$includes"
zip -r -X -q "$outputDir/$packageName-${version}_linux.zip" ./*
echo "Done."
echo
echo "Build complete. Unless there are errors above. Double check your files."