fixed #27 (latest builds folder)

This commit is contained in:
Paul Liverman III 2015-05-01 15:39:53 -07:00
parent 1eed64c421
commit 832eef9bea
3 changed files with 15 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
!builds/
builds/*
!builds/latest/
!builds/build.number
tmp/

9
build
View File

@ -181,6 +181,15 @@ if [ "$(ls -A $includes)" ]; then
fi
echo " Done."
if [ $latestBuilds = true ]; then
mkdir -p "$latestBuildsDir"
rm -f "$latestBuildsDir/*"
cp "$outputDir/$packageName-${version}_win32.zip" "$latestBuildsDir"
cp "$outputDir/$packageName-${version}_win64.zip" "$latestBuildsDir"
cp "$outputDir/$packageName-${version}_osx.zip" "$latestBuildsDir"
cp "$outputDir/$packageName-${version}_linux.zip" "$latestBuildsDir"
fi
echo "Builds complete. Unless there are errors above. Double check your files."
echo
if which fortune > /dev/null 2>&1; then fortune; fi

View File

@ -53,6 +53,11 @@ allowOverwrite=false
# (To do this, a build.number file is stored in $outputDir, so watch out for that.)
autoNumberBuilds=false
# Place latest builds in builds/latest?
# (This is a copy, not a move.)
latestBuilds=false
latestBuildsDir="$outputDir/latest"
# Use curl or wget?
# (One of these lines should be commented out, the other not)
#download="curl -o"