mirror of
https://github.com/TangentFoxy/LovePackaging.git
synced 2024-11-09 09:34:22 +00:00
linux builds, prettier output, includes changed
This commit is contained in:
parent
fe5061b9f3
commit
a5b032f55b
24
build
24
build
@ -43,51 +43,55 @@ fi
|
||||
|
||||
# build executables and zip files for them
|
||||
|
||||
echo
|
||||
echo "Building $packageName (version $version)... (win32 zip)"
|
||||
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
|
||||
#cd $originalDir
|
||||
cd $win32Dir
|
||||
zip -r $outputDir/$packageName-${version}_win32.zip ./$packageName.exe
|
||||
cd ./love-0.9.1-win32
|
||||
zip -r $outputDir/$packageName-${version}_win32.zip ./*.dll
|
||||
cp ./license.txt ./LOVE-license.txt
|
||||
zip -r $outputDir/$packageName-${version}_win32.zip ./LOVE-license.txt
|
||||
#cd $originalDir
|
||||
cd $includes
|
||||
zip -r $outputDir/$packageName-${version}_win32.zip ./*
|
||||
|
||||
echo
|
||||
echo "Building $packageName (version $version)... (win64 zip)"
|
||||
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
|
||||
#cd $originalDir
|
||||
cd $win64Dir
|
||||
zip -r $outputDir/$packageName-${version}_win64.zip ./$packageName.exe
|
||||
cd ./love-0.9.1-win64
|
||||
zip -r $outputDir/$packageName-${version}_win64.zip ./*.dll
|
||||
cp ./license.txt ./LOVE-license.txt
|
||||
zip -r $outputDir/$packageName-${version}_win64.zip ./LOVE-license.txt
|
||||
#cd $originalDir
|
||||
cd $includes
|
||||
zip -r $outputDir/$packageName-${version}_win64.zip ./*
|
||||
|
||||
if [ $macInfoPlistFixed = true ]; then
|
||||
echo
|
||||
echo "Building $packageName (version $version)... (OS X zip)"
|
||||
if [ -f $osx10Dir ]; then
|
||||
rm -f $osx10Dir/love.app/Contents/Resources/$packageName.love
|
||||
fi
|
||||
cp $outputDir/$packageName-$version.love $osx10Dir/love.app/Contents/Resources/$packageName.love
|
||||
cp $originalDir/Info.plist $osx10Dir/love.app/Contents/Info.plist
|
||||
#zip -r $outputDir/$packageName-${version}_osx.zip $osx10Dir/love.app $includes
|
||||
#cd $originalDir
|
||||
cd $osx10Dir
|
||||
zip -r $outputDir/$packageName-${version}_osx.zip ./love.app
|
||||
#cd $originalDir
|
||||
cd $includes
|
||||
zip -r $outputDir/$packageName-${version}_osx.zip ./*
|
||||
else
|
||||
echo "WARN: Mac packaging disabled."
|
||||
echo "See README.md for information."
|
||||
echo " See README.md for information."
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "Building $packageName (version $version)... (Linux zip)"
|
||||
cd $outputDir
|
||||
zip -r ./$packageName-${version}_linux.zip ./$packageName-$version.love
|
||||
cp $win64Dir/love-0.9.1-win64/LOVE-license.txt ./LOVE-license.txt
|
||||
zip -r ./$packageName-${version}_linux.zip ./LOVE-license.txt
|
||||
cd $includes
|
||||
zip -r $outputDir/$packageName-${version}_linux.zip ./*
|
||||
|
||||
echo
|
||||
echo "Build complete. Unless there are errors above. Double check your files."
|
||||
|
@ -11,7 +11,6 @@ outputDir="$(pwd)/builds"
|
||||
# Where the source code is. (This should be where your main.lua file is.)
|
||||
sourceDir="$(pwd)/src"
|
||||
# Files to include in ZIP packages. (ReadMe's, licenses, etc.)
|
||||
# Do not include a "license.txt" file. Name your license something else.
|
||||
includes="$(pwd)/includes"
|
||||
|
||||
# Where unzipped executables to make packages out of will be kept
|
||||
@ -22,5 +21,13 @@ osx10Dir="$outputDir/osx10src"
|
||||
# Remove old packages?
|
||||
removeOld=false
|
||||
|
||||
# Allow overwrite? NOT IMPLEMENTED
|
||||
# If this is false, LovePackaging will quit if you try to build with the same version number twice.
|
||||
allowOverwrite=false
|
||||
|
||||
# Auto-number builds? NOT IMPLEMENTED
|
||||
# An "-buildN" will be added to the end of ZIP package names, with N being the Nth time this project was built.
|
||||
autoNumberBuilds=false
|
||||
|
||||
# Only change this if you know what you're doing (Read the README.md file).
|
||||
macInfoPlistFixed=false
|
||||
|
@ -1,3 +1,8 @@
|
||||
This package created using LovePackaging!
|
||||
http://www.github.com/Guard13007/LovePackaging
|
||||
|
||||
LovePackaging is released under the MIT License:
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 Paul Liverman III
|
@ -1,9 +0,0 @@
|
||||
This package created with LovePackaging!
|
||||
http://www.github.com/Guard13007/LovePackaging
|
||||
|
||||
LovePackaging is released under the MIT license.
|
||||
This means you can do what you want with it as
|
||||
long as you keep the license notice for it/the
|
||||
part of it you use.
|
||||
|
||||
You don't even need to keep this file! :D
|
Loading…
Reference in New Issue
Block a user