Configuration/build.cmd

29 строки
1.0 KiB
Batchfile
Исходник Обычный вид История

@echo off
2014-01-29 03:58:56 +04:00
cd %~dp0
2014-02-02 20:06:02 +04:00
SETLOCAL
SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe
IF EXIST %CACHED_NUGET% goto copynuget
2014-01-29 03:58:56 +04:00
echo Downloading latest version of NuGet.exe...
2014-02-02 20:06:02 +04:00
IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'"
:copynuget
IF EXIST .nuget\nuget.exe goto restore
2014-01-29 03:58:56 +04:00
md .nuget
2014-02-02 20:06:02 +04:00
copy %CACHED_NUGET% .nuget\nuget.exe > nul
2014-01-29 03:58:56 +04:00
:restore
2014-01-29 10:22:34 +04:00
IF EXIST packages\KoreBuild goto run
2014-01-29 03:58:56 +04:00
.nuget\NuGet.exe install KoreBuild -ExcludeVersion -o packages -nocache -pre
2014-01-29 10:22:34 +04:00
.nuget\NuGet.exe install Sake -version 0.2 -o packages -ExcludeVersion
IF "%SKIP_DNX_INSTALL%"=="1" goto run
CALL packages\KoreBuild\build\dnvm upgrade -runtime CLR -arch x86
CALL packages\KoreBuild\build\dnvm install default -runtime CoreCLR -arch x86
2014-01-29 03:58:56 +04:00
:run
CALL packages\KoreBuild\build\dnvm use default -runtime CLR -arch x86
2014-01-29 10:22:34 +04:00
packages\Sake\tools\Sake.exe -I packages\KoreBuild\build -f makefile.shade %*