2015-03-09 22:56:19 +03:00
|
|
|
@echo off
|
2014-05-13 22:24:30 +04:00
|
|
|
cd %~dp0
|
|
|
|
|
|
|
|
SETLOCAL
|
|
|
|
SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe
|
|
|
|
|
|
|
|
IF EXIST %CACHED_NUGET% goto copynuget
|
|
|
|
echo Downloading latest version of NuGet.exe...
|
|
|
|
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
|
|
|
|
md .nuget
|
|
|
|
copy %CACHED_NUGET% .nuget\nuget.exe > nul
|
|
|
|
|
|
|
|
:restore
|
|
|
|
IF EXIST packages\KoreBuild goto run
|
|
|
|
.nuget\NuGet.exe install KoreBuild -ExcludeVersion -o packages -nocache -pre
|
|
|
|
.nuget\NuGet.exe install Sake -version 0.2 -o packages -ExcludeVersion
|
2014-06-03 22:10:02 +04:00
|
|
|
|
2015-03-08 22:51:40 +03:00
|
|
|
IF "%SKIP_DNX_INSTALL%"=="1" goto run
|
2015-03-12 07:50:21 +03:00
|
|
|
CALL packages\KoreBuild\build\dnvm upgrade -runtime CLR -arch x64
|
|
|
|
CALL packages\KoreBuild\build\dnvm install default -runtime CoreCLR -arch x64
|
|
|
|
CALL packages\KoreBuild\build\dnvm install default -runtime CLR -arch x86
|
|
|
|
CALL packages\KoreBuild\build\dnvm install default -runtime CoreCLR -arch x86
|
2014-05-13 22:24:30 +04:00
|
|
|
|
|
|
|
:run
|
2015-03-12 07:50:21 +03:00
|
|
|
CALL packages\KoreBuild\build\dnvm use default -runtime CLR -arch x86
|
2014-05-13 22:24:30 +04:00
|
|
|
packages\Sake\tools\Sake.exe -I packages\KoreBuild\build -f makefile.shade %*
|