Merge branch 'test-custom-version' of github.com:Guard13007/LovePackaging

This commit is contained in:
Paul Liverman III 2015-05-01 15:04:51 -07:00
commit 1eed64c421
2 changed files with 13 additions and 10 deletions

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
@ -130,7 +130,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
@ -171,7 +171,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
# ZIP up the extra included files # ZIP up the extra included files

View File

@ -26,10 +26,13 @@ win32Dir="$outputDir/win32src"
win64Dir="$outputDir/win64src" win64Dir="$outputDir/win64src"
osx10Dir="$outputDir/osx10src" osx10Dir="$outputDir/osx10src"
# Specify what version of love to use (default latest (currently 0.9.2))
loveVersion="0.9.2"
# Modified love executables (optional) # Modified love executables (optional)
# (The default values are where the default exe's will be extracted) # (The default values are where the default exe's will be extracted)
win32exe="$win32Dir/love-0.9.1-win32/love.exe" win32exe="$win32Dir/love-$loveVersion-win32/love.exe" #UNTESTED, MAY BREAK
win64exe="$win64Dir/love-0.9.1-win64/love.exe" win64exe="$win64Dir/love-$loveVersion-win64/love.exe" #UNTESTED, MAY BREAK
# Mac icns files for package icon # Mac icns files for package icon
# (It's best to just specify the same file for both. # (It's best to just specify the same file for both.