This repository has been archived by the owner on Dec 28, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #18 Bonus: removing a dependency on ConfigurationExtensions
- Loading branch information
moozzyk
committed
Jan 20, 2016
1 parent
cb98e7f
commit f3c1aeb
Showing
8 changed files
with
65 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,6 @@ nuget.exe | |
*.ipch | ||
*.sln.ide | ||
project.lock.json | ||
runtimes/ | ||
.build/ | ||
.testPublish/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
@echo off | ||
cd %~dp0 | ||
|
||
@ECHO off | ||
SETLOCAL | ||
|
||
SET REPO_FOLDER=%~dp0 | ||
CD "%REPO_FOLDER%" | ||
|
||
SET BUILD_FOLDER=.build | ||
SET KOREBUILD_FOLDER=%BUILD_FOLDER%\KoreBuild-dotnet | ||
SET KOREBUILD_VERSION= | ||
|
||
SET NUGET_PATH=%BUILD_FOLDER%\NuGet.exe | ||
SET NUGET_VERSION=latest | ||
SET CACHED_NUGET=%LocalAppData%\NuGet\nuget.%NUGET_VERSION%.exe | ||
SET BUILDCMD_KOREBUILD_VERSION= | ||
SET BUILDCMD_DNX_VERSION= | ||
|
||
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://dist.nuget.org/win-x86-commandline/%NUGET_VERSION%/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\Sake goto getdnx | ||
IF "%BUILDCMD_KOREBUILD_VERSION%"=="" ( | ||
.nuget\nuget.exe install KoreBuild -ExcludeVersion -o packages -nocache -pre | ||
) ELSE ( | ||
.nuget\nuget.exe install KoreBuild -version %BUILDCMD_KOREBUILD_VERSION% -ExcludeVersion -o packages -nocache -pre | ||
|
||
IF NOT EXIST %BUILD_FOLDER% ( | ||
md %BUILD_FOLDER% | ||
) | ||
.nuget\NuGet.exe install Sake -ExcludeVersion -Source https://www.nuget.org/api/v2/ -Out packages | ||
|
||
:getdnx | ||
IF "%BUILDCMD_DNX_VERSION%"=="" ( | ||
SET BUILDCMD_DNX_VERSION=latest | ||
IF NOT EXIST %NUGET_PATH% ( | ||
IF NOT EXIST %CACHED_NUGET% ( | ||
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://dist.nuget.org/win-x86-commandline/%NUGET_VERSION%/nuget.exe' -OutFile '%CACHED_NUGET%'" | ||
) | ||
|
||
copy %CACHED_NUGET% %NUGET_PATH% > nul | ||
) | ||
IF "%SKIP_DNX_INSTALL%"=="" ( | ||
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 | ||
) ELSE ( | ||
CALL packages\KoreBuild\build\dnvm use default -runtime CLR -arch x86 | ||
|
||
IF NOT EXIST %KOREBUILD_FOLDER% ( | ||
SET KOREBUILD_DOWNLOAD_ARGS= | ||
IF NOT "%KOREBUILD_VERSION%"=="" ( | ||
SET KOREBUILD_DOWNLOAD_ARGS=-version %KOREBUILD_VERSION% | ||
) | ||
|
||
%BUILD_FOLDER%\nuget.exe install KoreBuild-dotnet -ExcludeVersion -o %BUILD_FOLDER% -nocache -pre %KOREBUILD_DOWNLOAD_ARGS% | ||
) | ||
|
||
packages\Sake\tools\Sake.exe -I packages\KoreBuild\build -f makefile.shade %* | ||
"%KOREBUILD_FOLDER%\build\KoreBuild.cmd" %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters