wtf did I do wrong?

This commit is contained in:
Paul Liverman III 2015-12-13 18:46:03 -08:00
parent 7fb69f0bd8
commit d05fb987b5
2 changed files with 11 additions and 11 deletions

20
build
View File

@ -29,7 +29,7 @@ if [ $autoNumberBuilds = true ]; then
# store the current build number # store the current build number
echo "build=$build" > "$outputDir/build.number" echo "build=$build" > "$outputDir/build.number"
# set version to use new build number # set version to use new build number
version=$version-build$build version=$version-$build
fi fi
# check that zip and unzip are accessible # check that zip and unzip are accessible
@ -93,7 +93,7 @@ if [ ! -d "$osx10Dir/love.app" ]; then
echo " Done." echo " Done."
echo "Extracting osx10src..." echo "Extracting osx10src..."
unzip -q "$osx10Dir/loveOSX.zip" -d "$osx10Dir" unzip -q "$osx10Dir/loveOSX.zip" -d "$osx10Dir"
# delete Mac crao (for some reason can't not unzip it *shrugs*) # delete Mac crap (for some reason can't not unzip it *shrugs*)
rm -rf "$osx10Dir/__MACOSX" rm -rf "$osx10Dir/__MACOSX"
# 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"
@ -118,8 +118,8 @@ cp ./license.txt ./LOVE-license.txt
# ZIP up the LOVE license # ZIP up the LOVE license
zip -r -X -q "$outputDir/$packageName-${version}_win32.zip" ./LOVE-license.txt zip -r -X -q "$outputDir/$packageName-${version}_win32.zip" ./LOVE-license.txt
# ZIP up extra included files # ZIP up extra included files
if [ "$(ls -A $build-includes)" ]; then if [ "$(ls -A $includes)" ]; then
cd "$build-includes" cd "$includes"
zip -r -X -q "$outputDir/$packageName-${version}_win32.zip" ./* zip -r -X -q "$outputDir/$packageName-${version}_win32.zip" ./*
fi fi
echo " Done." echo " Done."
@ -137,8 +137,8 @@ cp ./license.txt ./LOVE-license.txt
# ZIP up the LOVE license # ZIP up the LOVE license
zip -r -X -q "$outputDir/$packageName-${version}_win64.zip" ./LOVE-license.txt zip -r -X -q "$outputDir/$packageName-${version}_win64.zip" ./LOVE-license.txt
# ZIP up extra included files # ZIP up extra included files
if [ "$(ls -A $build-includes)" ]; then if [ "$(ls -A $includes)" ]; then
cd "$build-includes" cd "$includes"
zip -r -X -q "$outputDir/$packageName-${version}_win64.zip" ./* zip -r -X -q "$outputDir/$packageName-${version}_win64.zip" ./*
fi fi
echo " Done." echo " Done."
@ -161,8 +161,8 @@ rm -rf "$originalDir/tmp"
# ZIP up the .app directory # ZIP up the .app directory
zip -r -X -q "$outputDir/$packageName-${version}_osx.zip" "./$packageName.app" zip -r -X -q "$outputDir/$packageName-${version}_osx.zip" "./$packageName.app"
# ZIP up the extra included files # ZIP up the extra included files
if [ "$(ls -A $build-includes)" ]; then if [ "$(ls -A $includes)" ]; then
cd "$build-includes" cd "$includes"
zip -r -X -q "$outputDir/$packageName-${version}_osx.zip" ./* zip -r -X -q "$outputDir/$packageName-${version}_osx.zip" ./*
fi fi
echo " Done." echo " Done."
@ -175,8 +175,8 @@ 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
if [ "$(ls -A $build-includes)" ]; then if [ "$(ls -A $includes)" ]; then
cd "$build-includes" cd "$includes"
zip -r -X -q "$outputDir/$packageName-${version}_linux.zip" ./* zip -r -X -q "$outputDir/$packageName-${version}_linux.zip" ./*
fi fi
echo " Done." echo " Done."

View File

@ -18,7 +18,7 @@ outputDir="$(pwd)/builds"
# Where the source code is. (This should be where your main.lua file is.) # Where the source code is. (This should be where your main.lua file is.)
sourceDir="$(pwd)/src" sourceDir="$(pwd)/src"
# Files to include in ZIP packages. (ReadMe's, licenses, etc.) # Files to include in ZIP packages. (ReadMe's, licenses, etc.)
includes="$(pwd)/includes" includes="$(pwd)/build-includes"
# Where unzipped executables to make packages out of will be kept # Where unzipped executables to make packages out of will be kept
# (This is also where LOVE executables will be kept before modifications to make your packages) # (This is also where LOVE executables will be kept before modifications to make your packages)