@@ -10,6 +10,10 @@ TOOLS_DIR=$SCRIPT_DIR/tools
1010NUGET_EXE=$TOOLS_DIR /nuget.exe
1111CAKE_EXE=$TOOLS_DIR /Cake/Cake.exe
1212
13+ # BEGIN TEMP WORKAROUND
14+ SYSIOCOMP=$TOOLS_DIR /System.IO.Compression.dll
15+ # END TEMP WORKAROUND
16+
1317# Define default arguments.
1418SCRIPT=" build.cake"
1519TARGET=" Default"
5256# Download NuGet if it does not exist.
5357if [ ! -f " $NUGET_EXE " ]; then
5458 echo " Downloading NuGet..."
55- # For now grab explicit 2.8.6 version instead of: https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
56- curl -Lsfo " $NUGET_EXE " https://dist.nuget.org/win-x86-commandline/v2.8.6/nuget .exe
59+ # For now grab explicit 3.4.4 version instead of: https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
60+ curl -Lsfo " $NUGET_EXE " https://dist.nuget.org/win-x86-commandline/v3.4.4/NuGet .exe
5761 if [ $? -ne 0 ]; then
5862 echo " An error occured while downloading nuget.exe."
5963 exit 1
@@ -69,6 +73,20 @@ if [ $? -ne 0 ]; then
6973fi
7074popd > /dev/null
7175
76+ # BEGIN TEMP WORKAROUND
77+ # There is a bug in Mono's System.IO.Compression
78+ # This binary fixes the bug for now
79+ # Download System.IO.Compression if it does not exist.
80+ if [ ! -f " $SYSIOCOMP " ]; then
81+ echo " Downloading System.IO.Compression.dll ..."
82+ curl -Lsfo " $SYSIOCOMP " http://xamarin-components-binaries.s3.amazonaws.com/System.IO.Compression.dll
83+ if [ $? -ne 0 ]; then
84+ echo " An error occured while downloading System.IO.Compression.dll."
85+ exit 1
86+ fi
87+ fi
88+ # END TEMP WORKAROUND
89+
7290# Make sure that Cake has been installed.
7391if [ ! -f " $CAKE_EXE " ]; then
7492 echo " Could not find Cake.exe at '$CAKE_EXE '."
0 commit comments