This commit is contained in:
Guard13007 2014-11-20 00:33:34 -08:00
parent 5f06fc4aa9
commit fe5061b9f3

31
build
View File

@ -45,29 +45,31 @@ fi
echo "Building $packageName (version $version)... (win32 zip)" echo "Building $packageName (version $version)... (win32 zip)"
cat $win32Dir/love-0.9.1-win32/love.exe $outputDir/$packageName-$version.love > $win32Dir/$packageName.exe cat $win32Dir/love-0.9.1-win32/love.exe $outputDir/$packageName-$version.love > $win32Dir/$packageName.exe
#zip -r $outputDir/$packageName-$version_win32.zip $win32Dir/$packageName.exe $win32Dir/love-0.9.1-win32/*.dll $win32Dir/love-0.9.1-win32/license.txt $includes #zip -r $outputDir/$packageName-${version}_win32.zip $win32Dir/$packageName.exe $win32Dir/love-0.9.1-win32/*.dll $win32Dir/love-0.9.1-win32/license.txt $includes
#cd $originalDir #cd $originalDir
cd $win32Dir cd $win32Dir
zip -r $outputDir/$packageName-$version_win32.zip ./$packageName.exe zip -r $outputDir/$packageName-${version}_win32.zip ./$packageName.exe
cd ./love-0.9.1-win32 cd ./love-0.9.1-win32
zip -r $outputDir/$packageName-$version_win32.zip ./*.dll zip -r $outputDir/$packageName-${version}_win32.zip ./*.dll
zip -r $outputDir/$packageName-$version_win32.zip ./license.txt cp ./license.txt ./LOVE-license.txt
zip -r $outputDir/$packageName-${version}_win32.zip ./LOVE-license.txt
#cd $originalDir #cd $originalDir
cd $includes cd $includes
zip -r $outputDir/$packageName-$version_win32.zip ./* zip -r $outputDir/$packageName-${version}_win32.zip ./*
echo "Building $packageName (version $version)... (win64 zip)" echo "Building $packageName (version $version)... (win64 zip)"
cat $win64Dir/love-0.9.1-win64/love.exe $outputDir/$packageName-$version.love > $win64Dir/$packageName.exe cat $win64Dir/love-0.9.1-win64/love.exe $outputDir/$packageName-$version.love > $win64Dir/$packageName.exe
#zip -r $outputDir/$packageName-$version_win64.zip $win64Dir/$packageName.exe $win64Dir/love-0.9.1-win64/*.dll $win64Dir/love-0.9.1-win64/license.txt $includes #zip -r $outputDir/$packageName-${version}_win64.zip $win64Dir/$packageName.exe $win64Dir/love-0.9.1-win64/*.dll $win64Dir/love-0.9.1-win64/license.txt $includes
#cd $originalDir #cd $originalDir
cd $win64Dir cd $win64Dir
zip -r $outputDir/$packageName-$version_win64.zip ./$packageName.exe zip -r $outputDir/$packageName-${version}_win64.zip ./$packageName.exe
cd ./love-0.9.1-win64 cd ./love-0.9.1-win64
zip -r $outputDir/$packageName-$version_win64.zip ./*.dll zip -r $outputDir/$packageName-${version}_win64.zip ./*.dll
zip -r $outputDir/$packageName-$version_win64.zip ./license.txt cp ./license.txt ./LOVE-license.txt
zip -r $outputDir/$packageName-${version}_win64.zip ./LOVE-license.txt
#cd $originalDir #cd $originalDir
cd $includes cd $includes
zip -r $outputDir/$packageName-$version_win64.zip ./* zip -r $outputDir/$packageName-${version}_win64.zip ./*
if [ $macInfoPlistFixed = true ]; then if [ $macInfoPlistFixed = true ]; then
echo "Building $packageName (version $version)... (OS X zip)" echo "Building $packageName (version $version)... (OS X zip)"
@ -76,15 +78,16 @@ if [ $macInfoPlistFixed = true ]; then
fi fi
cp $outputDir/$packageName-$version.love $osx10Dir/love.app/Contents/Resources/$packageName.love cp $outputDir/$packageName-$version.love $osx10Dir/love.app/Contents/Resources/$packageName.love
cp $originalDir/Info.plist $osx10Dir/love.app/Contents/Info.plist cp $originalDir/Info.plist $osx10Dir/love.app/Contents/Info.plist
#zip -r $outputDir/$packageName-$version_osx.zip $osx10Dir/love.app $includes #zip -r $outputDir/$packageName-${version}_osx.zip $osx10Dir/love.app $includes
#cd $originalDir #cd $originalDir
cd $osx10Dir cd $osx10Dir
zip -r $outputDir/$packageName-$version_osx.zip ./love.app zip -r $outputDir/$packageName-${version}_osx.zip ./love.app
#cd $originalDir #cd $originalDir
cd $includes cd $includes
zip -r $outputDir/$packageName-$version_osx.zip ./* zip -r $outputDir/$packageName-${version}_osx.zip ./*
else else
echo "WARN: Mac packaging disabled." echo "WARN: Mac packaging disabled."
echo "See README.md for information."
fi fi
echo "Build complete. Unless there are errors above. Check your files." echo "Build complete. Unless there are errors above. Double check your files."