[Mono] Use the same search logic for both MSBuild
and dotnet
, add custom search paths on macOS.
This commit is contained in:
parent
7e14a276da
commit
e304f716c7
@ -86,7 +86,7 @@ namespace GodotTools.Build
|
||||
{
|
||||
case BuildTool.DotnetCli:
|
||||
{
|
||||
string dotnetCliPath = OS.PathWhich("dotnet");
|
||||
string dotnetCliPath = FindBuildEngineOnUnix("dotnet");
|
||||
if (!string.IsNullOrEmpty(dotnetCliPath))
|
||||
return (dotnetCliPath, BuildTool.DotnetCli);
|
||||
GD.PushError($"Cannot find executable for '{BuildManager.PropNameDotnetCli}'. Fallback to MSBuild from Mono.");
|
||||
@ -122,7 +122,11 @@ namespace GodotTools.Build
|
||||
if (OS.IsMacOS)
|
||||
{
|
||||
result.Add("/Library/Frameworks/Mono.framework/Versions/Current/bin/");
|
||||
result.Add("/opt/local/bin/");
|
||||
result.Add("/usr/local/var/homebrew/linked/mono/bin/");
|
||||
result.Add("/usr/local/bin/");
|
||||
result.Add("/usr/local/bin/dotnet/");
|
||||
result.Add("/usr/local/share/dotnet/");
|
||||
}
|
||||
|
||||
result.Add("/opt/novell/mono/bin/");
|
||||
|
Loading…
Reference in New Issue
Block a user