Added a TEMPORARY workaround for packing NuGets...

- 77b034cbe7
 - That commit changed the ‘version made by’ instead of the ‘version needed to extract.’
This commit is contained in:
Matthew Leibowitz 2016-06-13 21:50:04 +02:00
Родитель 2af21eddb6
Коммит 441cacf017
1 изменённых файлов: 19 добавлений и 0 удалений

Просмотреть файл

@ -11,6 +11,10 @@ NUGET_EXE=$TOOLS_DIR/nuget.exe
XC_EXE=$TOOLS_DIR/xamarin-component.exe
CAKE_EXE=$TOOLS_DIR/Cake/Cake.exe
# BEGIN TEMP WORKAROUND
SYSIOCOMP=$TOOLS_DIR/System.IO.Compression.dll
# END TEMP WORKAROUND
# Define default arguments.
SCRIPT="build.cake"
TARGET="Default"
@ -61,6 +65,21 @@ if [ ! -f $XC_EXE ]; then
fi
# BEGIN TEMP WORKAROUND
# There is a bug in Mono's System.IO.Compression
# This binary fixes the bug for now
# Download System.IO.Compression if it does not exist.
if [ ! -f "$SYSIOCOMP" ]; then
echo "Downloading System.IO.Compression.dll (THIS SHOULD BE REMOVED) ..."
curl -Lsfo "$SYSIOCOMP" http://xamarin-components-binaries.s3.amazonaws.com/System.IO.Compression.dll
if [ $? -ne 0 ]; then
echo "An error occured while downloading System.IO.Compression.dll."
exit 1
fi
fi
# END TEMP WORKAROUND
# Restore tools from NuGet.
pushd $TOOLS_DIR >/dev/null
mono $NUGET_EXE install -ExcludeVersion