Skip to content

Commit

Permalink
Updated NuGet scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
pvginkel committed Sep 28, 2016
1 parent aaa0204 commit 9226ef8
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 7 deletions.
10 changes: 10 additions & 0 deletions Pack NuGet.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@echo off

pushd "%~dp0"

cd PdfiumViewer
..\Libraries\NuGet\NuGet.exe pack -Prop "configuration=release;platform=anycpu"

pause

popd
7 changes: 0 additions & 7 deletions PdfiumViewer/Pack NuGet Package.bat

This file was deleted.

24 changes: 24 additions & 0 deletions Push NuGet.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@echo off

setlocal enableextensions enabledelayedexpansion

pushd "%~dp0"

cd PdfiumViewer

for %%f in (*.nupkg) do (
if "!PACKAGE!" == "" (
set PACKAGE=%%f
) else (
echo Multiple NuGet packages found. Make sure only one exists.
goto eof
)
)

..\Libraries\NuGet\NuGet.exe push %PACKAGE%

:eof

pause

popd

0 comments on commit 9226ef8

Please sign in to comment.