one at a time

This commit is contained in:
Matthias Mailänder
2014-06-05 10:22:42 +02:00
parent 4c38a881b4
commit dd7e92112e
2 changed files with 44 additions and 52 deletions

View File

@@ -74,40 +74,35 @@ cp thirdparty/RestSharp.dll packaging/built
# Copy game icon for windows package
cp OpenRA.Game/OpenRA.ico packaging/built
#
# Change into packaging directory and run the
# platform-dependant packaging in parallel
#
cd packaging
echo "Creating packages..."
(
cd windows
makensis -DSRCDIR="$BUILTDIR" -DDEPSDIR="${SRCDIR}/thirdparty/windows" OpenRA.nsi
if [ $? -eq 0 ]; then
mv OpenRA.exe "$OUTPUTDIR"/OpenRA-$TAG.exe
else
echo "Windows package build failed."
fi
) &
pushd windows
echo "Building Windows setup.exe"
makensis -DSRCDIR="$BUILTDIR" -DDEPSDIR="${SRCDIR}/thirdparty/windows" OpenRA.nsi
if [ $? -eq 0 ]; then
mv OpenRA.exe "$OUTPUTDIR"/OpenRA-$TAG.exe
else
echo "Windows package build failed."
fi
popd
(
cd osx
sh buildpackage.sh "$TAG" "$BUILTDIR" "${SRCDIR}/thirdparty/osx" "$OUTPUTDIR"
if [ $? -ne 0 ]; then
echo "OS X package build failed."
fi
) &
pushd osx
echo "Zipping OS X package"
sh buildpackage.sh "$TAG" "$BUILTDIR" "${SRCDIR}/thirdparty/osx" "$OUTPUTDIR"
if [ $? -ne 0 ]; then
echo "OS X package build failed."
fi
popd
(
cd linux
sh buildpackage.sh "$TAG" "$BUILTDIR" "${SRCDIR}/thirdparty/linux" "$OUTPUTDIR"
if [ $? -ne 0 ]; then
echo "Linux package build failed."
fi
) &
pushd linux
echo "Building Linux packages"
sh buildpackage.sh "$TAG" "$BUILTDIR" "${SRCDIR}/thirdparty/linux" "$OUTPUTDIR"
if [ $? -ne 0 ]; then
echo "Linux package build failed."
fi
popd
wait
echo "Package build done."
rm -rf $BUILTDIR