Fixing Editor Path
* Again the path was hardcoded to win64
This commit is contained in:
@@ -6,6 +6,7 @@ using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace Flax.Build
|
||||
@@ -746,5 +747,19 @@ namespace Flax.Build
|
||||
text = text.Replace(findWhat, replaceWith);
|
||||
File.WriteAllText(file, text);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns back the exe ext for the current platform
|
||||
/// </summary>
|
||||
public static string GetPlatformExecutableExt()
|
||||
{
|
||||
var extEnding = ".exe";
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX) || RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
|
||||
{
|
||||
extEnding = "";
|
||||
}
|
||||
|
||||
return extEnding;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user