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%
SET DESTDIR=%DIR%bin
IF EXIST %DESTDIR% goto deletebin
goto prepare
:deletebin
rmdir /s /q %DESTDIR%
if %ERRORLEVEL% NEQ 0 goto errors
:prepare
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
:build
nuget pack %DESTDIR%\Archetype.nuspec
if %ERRORLEVEL% NEQ 0 goto errors
goto :eof
:errors
EXIT /B %ERRORLEVEL%
Something went wrong with that request. Please try again.