diff --git a/build.sh b/build.sh index ae1f0ee8e6..6bfa6f59e5 100755 --- a/build.sh +++ b/build.sh @@ -29,6 +29,20 @@ dnu publish src/OmniSharp --configuration Release --no-source --out artifacts/bu # work around for kpm bundle returning an exit code 0 on failure grep "Build failed" buildlog rc=$?; if [[ $rc == 0 ]]; then exit 1; fi + +curl -LO http://nuget.org/nuget.exe +mono nuget.exe install dnx-clr-win-x86 -Version 1.0.0-beta4 -Prerelease -OutputDirectory artifacts/build/omnisharp/approot/packages + +if [ ! -d "artifacts/build/omnisharp/approot/packages/dnx-clr-win-x86.1.0.0-beta4" ]; then + echo 'ERROR: Can not find dnx-clr-win-x86.1.0.0-beta4 in output exiting!' + exit 1 +fi + +if [ ! -d "artifacts/build/omnisharp/approot/packages/dnx-mono.1.0.0-beta4" ]; then + echo 'ERROR: Can not find dnx-mono.1.0.0-beta4 in output exiting!' + exit 1 +fi + cd artifacts/build/omnisharp tar -zcf ../../../omnisharp.tar.gz . cd ../../..