build updated to use custom love versions

#29
This commit is contained in:
Paul Liverman 2015-04-30 14:15:25 -07:00
parent 81b9be7899
commit 7649e32efc

16
build
View File

@ -60,10 +60,10 @@ echo " Done."
# check if executables exist, if not, download them # check if executables exist, if not, download them
# (assumes if the exe exists, everything else does too) # (assumes if the exe exists, everything else does too)
if [ ! -r "$win32Dir/love-0.9.1-win32/love.exe" ]; then if [ ! -r "$win32Dir/love-$loveVersion-win32/love.exe" ]; then
mkdir -p "$win32Dir" mkdir -p "$win32Dir"
echo "Downloading win32src..." echo "Downloading win32src..."
$download "$win32Dir/love32.zip" https://bitbucket.org/rude/love/downloads/love-0.9.1-win32.zip $download "$win32Dir/love32.zip" https://bitbucket.org/rude/love/downloads/love-$loveVersion-win32.zip
echo " Done." echo " Done."
echo "Extracting win32src..." echo "Extracting win32src..."
unzip -q "$win32Dir/love32.zip" -d "$win32Dir" unzip -q "$win32Dir/love32.zip" -d "$win32Dir"
@ -73,10 +73,10 @@ if [ ! -r "$win32Dir/love-0.9.1-win32/love.exe" ]; then
echo " Done." echo " Done."
fi fi
if [ ! -r "$win64Dir/love-0.9.1-win64/love.exe" ]; then if [ ! -r "$win64Dir/love-$loveVersion-win64/love.exe" ]; then
mkdir -p "$win64Dir" mkdir -p "$win64Dir"
echo "Downloading win64src..." echo "Downloading win64src..."
$download "$win64Dir/love64.zip" https://bitbucket.org/rude/love/downloads/love-0.9.1-win64.zip $download "$win64Dir/love64.zip" https://bitbucket.org/rude/love/downloads/love-$loveVersion-win64.zip
echo " Done." echo " Done."
echo "Extracting win64src..." echo "Extracting win64src..."
unzip -q "$win64Dir/love64.zip" -d "$win64Dir" unzip -q "$win64Dir/love64.zip" -d "$win64Dir"
@ -89,7 +89,7 @@ fi
if [ ! -d "$osx10Dir/love.app" ]; then if [ ! -d "$osx10Dir/love.app" ]; then
mkdir -p "$osx10Dir" mkdir -p "$osx10Dir"
echo "Downloading osx10src..." echo "Downloading osx10src..."
$download "$osx10Dir/loveOSX.zip" https://bitbucket.org/rude/love/downloads/love-0.9.1-macosx-x64.zip $download "$osx10Dir/loveOSX.zip" https://bitbucket.org/rude/love/downloads/love-$loveVersion-macosx-x64.zip
echo " Done." echo " Done."
echo "Extracting osx10src..." echo "Extracting osx10src..."
unzip -q "$osx10Dir/loveOSX.zip" -d "$osx10Dir" unzip -q "$osx10Dir/loveOSX.zip" -d "$osx10Dir"
@ -111,7 +111,7 @@ cat "$win32exe" "$outputDir/$packageName-$version.love" > "$win32Dir/$packageNam
cd "$win32Dir" cd "$win32Dir"
# ZIP up the EXE # ZIP up the EXE
zip -r -X -q "$outputDir/$packageName-${version}_win32.zip" "./$packageName.exe" zip -r -X -q "$outputDir/$packageName-${version}_win32.zip" "./$packageName.exe"
cd ./love-0.9.1-win32 cd ./love-$loveVersion-win32
# ZIP up the required DLLs # ZIP up the required DLLs
zip -r -X -q "$outputDir/$packageName-${version}_win32.zip" ./*.dll zip -r -X -q "$outputDir/$packageName-${version}_win32.zip" ./*.dll
cp ./license.txt ./LOVE-license.txt cp ./license.txt ./LOVE-license.txt
@ -128,7 +128,7 @@ cat "$win64exe" "$outputDir/$packageName-$version.love" > "$win64Dir/$packageNam
cd "$win64Dir" cd "$win64Dir"
# ZIP up the EXE # ZIP up the EXE
zip -r -X -q "$outputDir/$packageName-${version}_win64.zip" "./$packageName.exe" zip -r -X -q "$outputDir/$packageName-${version}_win64.zip" "./$packageName.exe"
cd ./love-0.9.1-win64 cd ./love-$loveVersion-win64
# ZIP up the required DLLs # ZIP up the required DLLs
zip -r -X -q "$outputDir/$packageName-${version}_win64.zip" ./*.dll zip -r -X -q "$outputDir/$packageName-${version}_win64.zip" ./*.dll
cp ./license.txt ./LOVE-license.txt cp ./license.txt ./LOVE-license.txt
@ -164,7 +164,7 @@ echo "Building $packageName (version $version)... (Linux zip)"
cd "$outputDir" cd "$outputDir"
# ZIP up the .love file # ZIP up the .love file
zip -r -X -q "./$packageName-${version}_linux.zip" "./$packageName-$version.love" zip -r -X -q "./$packageName-${version}_linux.zip" "./$packageName-$version.love"
cp "$win64Dir/love-0.9.1-win64/LOVE-license.txt" ./LOVE-license.txt cp "$win64Dir/love-$loveVersion-win64/LOVE-license.txt" ./LOVE-license.txt
# ZIP up the LOVE license # ZIP up the LOVE license
zip -r -X -q "./$packageName-${version}_linux.zip" ./LOVE-license.txt zip -r -X -q "./$packageName-${version}_linux.zip" ./LOVE-license.txt
cd "$includes" cd "$includes"