diff --git a/bootstrapper.sh b/bootstrapper.sh index da628fc6..049d39bb 100755 --- a/bootstrapper.sh +++ b/bootstrapper.sh @@ -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