Mac progress

This commit is contained in:
Wojtek Figat
2021-12-27 17:06:26 +01:00
parent e296e94d2c
commit 22915489b7
3 changed files with 59 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
// Copyright (c) 2012-2020 Flax Engine. All rights reserved.
using System;
using System.IO;
using Flax.Build.Platforms;
@@ -67,6 +68,28 @@ namespace Flax.Build.Projects.VisualStudioCode
}
break;
}
case TargetPlatform.Mac:
{
var userFolder = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
var paths = new string[]
{
"/Applications/Visual Studio Code.app",
userFolder + "/Visual Studio Code.app",
userFolder + "/Downloads/Visual Studio Code.app",
};
foreach (var path in paths)
{
if (Directory.Exists(path))
{
_instance = new VisualStudioCodeInstance
{
Path = path,
};
break;
}
}
break;
}
}
if (_instance != null)