Skip to content

Commit

Permalink
Merge pull request #255 from OmniSharp/add-dnx-win-to-release
Browse files Browse the repository at this point in the history
Add dnx win to release
  • Loading branch information
nosami committed Jul 2, 2015
2 parents dc21b16 + cc70800 commit 722f083
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ../../..

0 comments on commit 722f083

Please sign in to comment.