mirror of
https://github.com/TangentFoxy/LovePackaging.git
synced 2024-11-26 10:44:21 +00:00
should be fixed now
This commit is contained in:
parent
4a455441a8
commit
5f06fc4aa9
33
build
33
build
@ -44,13 +44,30 @@ fi
|
||||
# build executables and zip files for them
|
||||
|
||||
echo "Building $packageName (version $version)... (win32 zip)"
|
||||
cat $wind32Dir/love-0.9.1-win32/love.exe $outputDir/$packageName-$version.love > $wind32Dir/$packageName.exe
|
||||
zip -r $outputDir/$packageName-$version_win32.zip $wind32Dir/$packageName.exe $wind32Dir/love-0.9.1-win32/*.dll $wind32Dir/love-0.9.1-win32/license.txt $includes
|
||||
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
|
||||
zip -r $outputDir/$packageName-$version_win32.zip ./license.txt
|
||||
#cd $originalDir
|
||||
cd $includes
|
||||
zip -r $outputDir/$packageName-$version_win32.zip ./*
|
||||
|
||||
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
|
||||
|
||||
#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
|
||||
zip -r $outputDir/$packageName-$version_win64.zip ./license.txt
|
||||
#cd $originalDir
|
||||
cd $includes
|
||||
zip -r $outputDir/$packageName-$version_win64.zip ./*
|
||||
|
||||
if [ $macInfoPlistFixed = true ]; then
|
||||
echo "Building $packageName (version $version)... (OS X zip)"
|
||||
@ -59,7 +76,13 @@ if [ $macInfoPlistFixed = true ]; then
|
||||
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
|
||||
#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."
|
||||
fi
|
||||
|
17
config.txt
17
config.txt
@ -1,5 +1,11 @@
|
||||
# The name of the resulting executables.
|
||||
packageName="LovePackagingExample"
|
||||
# Who made this? (Yes, change this to your name.)
|
||||
author="Guard13007"
|
||||
# Current version (of your program)
|
||||
version="0.1"
|
||||
|
||||
###### Important! ONLY USE ABSOLUATE PATHS ######
|
||||
# Where to place the resulting executables.
|
||||
outputDir="$(pwd)/builds"
|
||||
# Where the source code is. (This should be where your main.lua file is.)
|
||||
@ -8,18 +14,13 @@ sourceDir="$(pwd)/src"
|
||||
# Do not include a "license.txt" file. Name your license something else.
|
||||
includes="$(pwd)/includes"
|
||||
|
||||
# Who made this? (Yes, change this to your name.)
|
||||
author="Guard13007"
|
||||
# Current version (of your program)
|
||||
version="0.1"
|
||||
|
||||
# Remove old packages?
|
||||
removeOld=false
|
||||
|
||||
# Where unzipped executables to make packages out of will be kept
|
||||
win32Dir="$outputDir/win32src"
|
||||
win64Dir="$outputDir/win64src"
|
||||
osx10Dir="$outputDir/osx10src"
|
||||
|
||||
# Remove old packages?
|
||||
removeOld=false
|
||||
|
||||
# Only change this if you know what you're doing (Read the README.md file).
|
||||
macInfoPlistFixed=false
|
||||
|
Loading…
Reference in New Issue
Block a user