diff --git a/.gitignore b/.gitignore index b8be4da..7e4c1fd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ !builds/ builds/* +!builds/latest/ !builds/build.number tmp/ diff --git a/build b/build index 8087f8c..981a7dc 100644 --- a/build +++ b/build @@ -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 diff --git a/config.sh b/config.sh index 18252a3..8c7a8f0 100644 --- a/config.sh +++ b/config.sh @@ -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"