Fix local build break
This commit is contained in:
Родитель
a0c632d643
Коммит
2a951aaeaa
12
build.cmd
12
build.cmd
|
@ -4,8 +4,8 @@ cd %~dp0
|
||||||
SETLOCAL
|
SETLOCAL
|
||||||
SET NUGET_VERSION=latest
|
SET NUGET_VERSION=latest
|
||||||
SET CACHED_NUGET=%LocalAppData%\NuGet\nuget.%NUGET_VERSION%.exe
|
SET CACHED_NUGET=%LocalAppData%\NuGet\nuget.%NUGET_VERSION%.exe
|
||||||
SET BUILDCMD_KOREBUILD_VERSION=""
|
SET BUILDCMD_KOREBUILD_VERSION=
|
||||||
SET BUILDCMD_DNX_VERSION=""
|
SET BUILDCMD_DNX_VERSION=
|
||||||
|
|
||||||
IF EXIST %CACHED_NUGET% goto copynuget
|
IF EXIST %CACHED_NUGET% goto copynuget
|
||||||
echo Downloading latest version of NuGet.exe...
|
echo Downloading latest version of NuGet.exe...
|
||||||
|
@ -19,7 +19,7 @@ copy %CACHED_NUGET% .nuget\nuget.exe > nul
|
||||||
|
|
||||||
:restore
|
:restore
|
||||||
IF EXIST packages\Sake goto getdnx
|
IF EXIST packages\Sake goto getdnx
|
||||||
IF %BUILDCMD_KOREBUILD_VERSION%=="" (
|
IF "%BUILDCMD_KOREBUILD_VERSION%"=="" (
|
||||||
.nuget\nuget.exe install KoreBuild -ExcludeVersion -o packages -nocache -pre
|
.nuget\nuget.exe install KoreBuild -ExcludeVersion -o packages -nocache -pre
|
||||||
) ELSE (
|
) ELSE (
|
||||||
.nuget\nuget.exe install KoreBuild -version %BUILDCMD_KOREBUILD_VERSION% -ExcludeVersion -o packages -nocache -pre
|
.nuget\nuget.exe install KoreBuild -version %BUILDCMD_KOREBUILD_VERSION% -ExcludeVersion -o packages -nocache -pre
|
||||||
|
@ -27,10 +27,10 @@ IF %BUILDCMD_KOREBUILD_VERSION%=="" (
|
||||||
.nuget\NuGet.exe install Sake -ExcludeVersion -Source https://www.nuget.org/api/v2/ -Out packages
|
.nuget\NuGet.exe install Sake -ExcludeVersion -Source https://www.nuget.org/api/v2/ -Out packages
|
||||||
|
|
||||||
:getdnx
|
:getdnx
|
||||||
|
IF "%BUILDCMD_DNX_VERSION%"=="" (
|
||||||
|
SET BUILDCMD_DNX_VERSION=latest
|
||||||
|
)
|
||||||
IF "%SKIP_DNX_INSTALL%"=="" (
|
IF "%SKIP_DNX_INSTALL%"=="" (
|
||||||
IF "%BUILDCMD_DNX_VERSION%"=="" (
|
|
||||||
BUILDCMD_DNX_VERSION=latest
|
|
||||||
)
|
|
||||||
CALL packages\KoreBuild\build\dnvm install %BUILDCMD_DNX_VERSION% -runtime CoreCLR -arch x86 -alias default
|
CALL packages\KoreBuild\build\dnvm install %BUILDCMD_DNX_VERSION% -runtime CoreCLR -arch x86 -alias default
|
||||||
CALL packages\KoreBuild\build\dnvm install default -runtime CLR -arch x86 -alias default
|
CALL packages\KoreBuild\build\dnvm install default -runtime CLR -arch x86 -alias default
|
||||||
) ELSE (
|
) ELSE (
|
||||||
|
|
Загрузка…
Ссылка в новой задаче