mirror of
https://github.com/TangentFoxy/LovePackaging.git
synced 2024-11-09 09:34:22 +00:00
prefixed things with "build-"
This commit is contained in:
parent
832eef9bea
commit
ec789d33ea
@ -24,7 +24,7 @@ Quick Guide:
|
|||||||
|
|
||||||
1. Download the [latest release](https://github.com/Guard13007/LovePackaging/releases)!
|
1. Download the [latest release](https://github.com/Guard13007/LovePackaging/releases)!
|
||||||
2. Copy the files wherever you want, inside your own repo, outside, wherever!
|
2. Copy the files wherever you want, inside your own repo, outside, wherever!
|
||||||
3. Edit `config.sh` to specify options on how your packages will be built, including where the sources are and where to put the result.
|
3. Edit `build-config.sh` to specify options on how your packages will be built, including where the sources are and where to put the result.
|
||||||
4. Run `./build` for Linux / Mac OS X (OSX users need wget installed!!).
|
4. Run `./build` for Linux / Mac OS X (OSX users need wget installed!!).
|
||||||
No Windows version yet, sorry.
|
No Windows version yet, sorry.
|
||||||
|
|
||||||
|
20
build
20
build
@ -10,7 +10,7 @@ set -o errexit
|
|||||||
# # has a command-line option, which should be the config file to load from
|
# # has a command-line option, which should be the config file to load from
|
||||||
# source "$1"
|
# source "$1"
|
||||||
#else
|
#else
|
||||||
source ./config.sh
|
source ./build-config.sh
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
# make $outputDir if it doesn't exist
|
# make $outputDir if it doesn't exist
|
||||||
@ -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 $includes)" ]; then
|
if [ "$(ls -A $build-includes)" ]; then
|
||||||
cd "$includes"
|
cd "$build-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 $includes)" ]; then
|
if [ "$(ls -A $build-includes)" ]; then
|
||||||
cd "$includes"
|
cd "$build-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."
|
||||||
@ -154,15 +154,15 @@ cp "$osxIconsDirectory/$osxFileIcon" "$osx10Dir/$packageName.app/Contents/Resour
|
|||||||
cp "$osxIconsDirectory/$osxBundleIcon" "$osx10Dir/$packageName.app/Contents/Resources/$osxBundleIcon"
|
cp "$osxIconsDirectory/$osxBundleIcon" "$osx10Dir/$packageName.app/Contents/Resources/$osxBundleIcon"
|
||||||
# Create an Info.plist and copy it in
|
# Create an Info.plist and copy it in
|
||||||
cd "$originalDir"
|
cd "$originalDir"
|
||||||
source "$originalDir/lp-scripts/Info.plist-maker.sh"
|
source "$originalDir/build-scripts/Info.plist-maker.sh"
|
||||||
cd "$osx10Dir"
|
cd "$osx10Dir"
|
||||||
cp "$originalDir/tmp/Info.plist" "$osx10Dir/$packageName.app/Contents/Info.plist"
|
cp "$originalDir/tmp/Info.plist" "$osx10Dir/$packageName.app/Contents/Info.plist"
|
||||||
rm -rf "$originalDir/tmp"
|
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 $includes)" ]; then
|
if [ "$(ls -A $build-includes)" ]; then
|
||||||
cd "$includes"
|
cd "$build-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 $includes)" ]; then
|
if [ "$(ls -A $build-includes)" ]; then
|
||||||
cd "$includes"
|
cd "$build-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."
|
||||||
|
Loading…
Reference in New Issue
Block a user