Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (19 sloc) 657 Bytes
@echo on
:: Assumes robocopy and nuget.exe both on the path
:: This must be run as the administrator
SET DIR=%~dp0%
IF EXIST %DESTDIR% goto deletebin
goto prepare
rmdir /s /q %DESTDIR%
if %ERRORLEVEL% NEQ 0 goto errors
robocopy %DIR% %DESTDIR%\tools /E /B /NP /R:0 /W:0 /NJH /NJS /NS /NFL /NDL /XF ".git*" "Nuget*" "RunTests.*" "*.nupkg" /XD "%DIR%nuget" "%DIR%.git" "%DIR%bin" "%DIR%lib"
robocopy %DIR%nuget %DESTDIR% /E /B /NP /R:0 /W:0 /NJH /NJS /NS /NFL /NDL
nuget pack %DESTDIR%\Archetype.nuspec
if %ERRORLEVEL% NEQ 0 goto errors
goto :eof
Something went wrong with that request. Please try again.