MacPlatform: report an error if the HashLink binary directory doesn't exist
Better than this: Uncaught exception - std@sys_read_dir
This commit is contained in:
@@ -653,6 +653,16 @@ class MacPlatform extends PlatformTarget
|
||||
var limeDirectory = Haxelib.getPath(new Haxelib("lime"), true);
|
||||
var bindir = "Mac64";
|
||||
var bundledHLDirectory = Path.combine(limeDirectory, 'templates/bin/hl/$bindir');
|
||||
if (!FileSystem.exists(bundledHLDirectory))
|
||||
{
|
||||
Log.error('Directory does not exist: $bundledHLDirectory');
|
||||
return;
|
||||
}
|
||||
if (!FileSystem.isDirectory(bundledHLDirectory))
|
||||
{
|
||||
Log.error('Not a directory: $bundledHLDirectory');
|
||||
return;
|
||||
}
|
||||
|
||||
// these are the known directories where Homebrew installs its dependencies
|
||||
// we may need to add more in the future, but this seems to be enough for now
|
||||
|
||||
Reference in New Issue
Block a user