Skip to content

Commit

Permalink
update package build script
Browse files Browse the repository at this point in the history
  • Loading branch information
warrenfalk committed Nov 18, 2017
1 parent ee05f24 commit 8818ab4
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions nuget/build-and-pack.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,33 @@ cd ..
REM echo "Downloading native..."
REM call download-native.cmd

nuget restore
@REM --------------------------------
@echo Building RocksDbNative
cd RocksDbNative
@echo Restoring...
msbuild /t:Restore
@if %errorlevel% neq 0 goto oops

msbuild /p:Configuration=Release /t:Rebuild,Pack RocksDbNative\RocksDbNative.csproj
@echo Building...
msbuild /p:Configuration=Release /t:Rebuild,Pack
@if %errorlevel% neq 0 goto oops

msbuild /p:Configuration=Release /t:Rebuild,Pack RocksDbSharp\RocksDbSharp.csproj
@echo Installing...
move /y bin\Release\*.nupkg ..\nuget\
@if %errorlevel% neq 0 goto oops
cd ..

move /y RocksDbSharp\bin\Release\*.nupkg .\nuget\
@REM --------------------------------
@echo Building RocksDbSharp
cd RocksDbSharp
@echo Restoring...
msbuild /t:Restore
@if %errorlevel% neq 0 goto oops

move /y RocksDbNative\bin\Release\*.nupkg .\nuget\
@echo Building...
msbuild /p:Configuration=Release /t:Rebuild,Pack
@if %errorlevel% neq 0 goto oops
@echo Installing...
move /y bin\Release\*.nupkg ..\nuget\
@if %errorlevel% neq 0 goto oops
cd ..

:good
popd
Expand Down

0 comments on commit 8818ab4

Please sign in to comment.