Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 71 lines (53 sloc) 1.933 kB
#! /bin/bash
# Quit on error.
set -e
if [ ! -e installer ]; then
echo "Error: This script needs to be run from the root directory of the archive"
exit 1
fi
WGET="wget -N"
TAG=$(git describe --tags|tr -d '\n')
if [ "$TAG" = "" ]; then
echo "Error running git describe"
exit 1
fi
NSISDEFINES="-DVERSION_TAG="$TAG""
# Evaluate the engines version
if ! git describe --candidate=0 --tags 2>/dev/null; then
NSISDEFINES="$NSISDEFINES -DTEST_BUILD"
echo "Creating test installer for revision $TAG"
fi
mkdir -p installer/downloads
cd installer/downloads
$WGET http://springrts.com/dl/rapid-spring-latest-win32.7z
$WGET http://zero-k.info/lobby/setup.exe
$WGET http://zero-k.info/lobby/setup_icon.ico
$WGET http://www.springlobby.info/windows/latest.zip
if ! [ -s vcredist_x86.exe ]; then
$WGET http://download.microsoft.com/download/e/1/c/e1c773de-73ba-494a-a5ba-f24906ecf088/vcredist_x86.exe
fi
if [ ! -s spring_testing_minimal-portable.7z ]; then
echo "Warning: spring_testing_minimal-portable.7z didn't exist, downloading..." >&2
$WGET http://springrts.com/dl/buildbot/default/master/spring_testing_minimal-portable.7z
fi
cd ..
rm -rf Springlobby
mkdir -p Springlobby
cd Springlobby
unzip ../downloads/latest.zip -d SLArchive
mkdir SettingsDlls
mv SLArchive/*.dll SettingsDlls
mv SLArchive/springsettings.exe SettingsDlls
### This version of OpenAL breaks Spring ...
# not used anymore since May 2010
rm -f SettingsDlls/OpenAL32.dll
cd ../..
#create uninstall.nsh
installer/make_uninstall_nsh.py \
installer/downloads/spring_testing_minimal-portable.7z \
installer/downloads/rapid-spring-latest-win32.7z:rapid\\ >installer/downloads/uninstall.nsh
makensis -V3 $NSISDEFINES $@ -DNSI_UNINSTALL_FILES=downloads/uninstall.nsh \
-DRAPID_ARCHIVE=downloads/rapid-spring-latest-win32.7z \
-DMIN_PORTABLE_ARCHIVE=downloads/spring_testing_minimal-portable.7z \
-DVCREDIST=downloads/vcredist_x86.exe \
installer/spring.nsi
Jump to Line
Something went wrong with that request. Please try again.