From 441cacf017787e691216be51a85bb1f7ddba5c05 Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Mon, 13 Jun 2016 21:50:04 +0200 Subject: [PATCH] =?UTF-8?q?Added=20a=20TEMPORARY=20workaround=20for=20pack?= =?UTF-8?q?ing=20NuGets...=20=20-=20https://github.com/mono/mono/commit/77?= =?UTF-8?q?b034cbe78bfccfe4c1995152bd5562a1d69ef5=20=20-=20That=20commit?= =?UTF-8?q?=20changed=20the=20=E2=80=98version=20made=20by=E2=80=99=20inst?= =?UTF-8?q?ead=20of=20the=20=E2=80=98version=20needed=20to=20extract.?= =?UTF-8?q?=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bootstrapper.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/bootstrapper.sh b/bootstrapper.sh index da628fc6b..049d39bb0 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