1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-19 01:04:20 +00:00

Projucer: Fixed an issue where the DemoRunner executable could not be found in the JUCE root directory

This commit is contained in:
ed 2018-03-15 14:34:39 +00:00
parent c448f8a2f9
commit 9c54ccc99b

View file

@ -732,14 +732,20 @@ File ProjucerApplication::findDemoRunnerExecutable() const noexcept
extension = {};
#endif
auto precompiledFile = getJUCEExamplesDirectoryPathFromGlobal().getChildFile ("DemoRunner" + extension);
auto juceDir = getAppSettings().getStoredPath (Ids::jucePath).toString();
if (juceDir.isNotEmpty())
{
auto precompiledFile = File (juceDir).getChildFile ("DemoRunner" + extension);
#if JUCE_MAC
if (precompiledFile.exists())
#else
if (precompiledFile.existsAsFile())
#endif
return precompiledFile;
}
#if JUCE_MAC
if (precompiledFile.exists())
#else
if (precompiledFile.existsAsFile())
#endif
return precompiledFile;
return {};
}