Fix building scripts on Linux from Editor
This commit is contained in:
@@ -214,7 +214,11 @@ void ScriptsBuilder::Compile()
|
||||
bool ScriptsBuilder::RunBuildTool(const StringView& args, const StringView& workingDir)
|
||||
{
|
||||
PROFILE_CPU();
|
||||
#if USE_NETCORE && (PLATFORM_LINUX || PLATFORM_MAC)
|
||||
const String buildToolPath = Globals::StartupFolder / TEXT("Binaries/Tools/Flax.Build");
|
||||
#else
|
||||
const String buildToolPath = Globals::StartupFolder / TEXT("Binaries/Tools/Flax.Build.exe");
|
||||
#endif
|
||||
if (!FileSystem::FileExists(buildToolPath))
|
||||
{
|
||||
Log::FileNotFoundException(buildToolPath).SetLevel(LogType::Fatal);
|
||||
@@ -223,7 +227,7 @@ bool ScriptsBuilder::RunBuildTool(const StringView& args, const StringView& work
|
||||
|
||||
// Prepare build options
|
||||
StringBuilder cmdLine(args.Length() + buildToolPath.Length() + 200);
|
||||
#if PLATFORM_LINUX || PLATFORM_MAC
|
||||
#if !USE_NETCORE && (PLATFORM_LINUX || PLATFORM_MAC)
|
||||
const String monoPath = Globals::MonoPath / TEXT("bin/mono");
|
||||
if (!FileSystem::FileExists(monoPath))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user