Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 1094561

Browse files
committed
Use KOREBUILD_NUGET_EXE if available
1 parent c7050ca commit 1094561

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

makefile.shade

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ k-standard-goals
6060
var x64ExeDestinationPath = Path.Combine(win7x64Directory, TOOL_EXE_NAME);
6161
File.Copy(x64ExePath, x64ExeDestinationPath);
6262

63-
var nugetExePath = Path.Combine(BASE_DIR_LOCAL, ".build", "nuget.exe");
63+
var nugetExePath = Environment.GetEnvironmentVariable("KOREBUILD_NUGET_EXE");
64+
if (string.IsNullOrEmpty(nugetExePath))
65+
{
66+
nugetExePath = Path.Combine(BASE_DIR_LOCAL, ".build", "nuget.exe");
67+
}
6468
var nuspecPath = Path.Combine(extractToDirectory, TOOL_PROJECT_NAME + ".nuspec");
6569
ExecClr(nugetExePath, "pack " + nuspecPath + " -OutputDirectory " + BUILD_DIR_LOCAL);
6670

0 commit comments

Comments
 (0)