mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2025-01-10 23:47:21 -08:00
MacOS Update
This commit is contained in:
parent
386987fbb1
commit
370b9bd31e
1 changed files with 8 additions and 11 deletions
|
@ -1,4 +1,5 @@
|
|||
using System.Diagnostics;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Runtime.Versioning;
|
||||
using System.Text;
|
||||
|
@ -27,21 +28,17 @@ namespace SourceGit.Native
|
|||
|
||||
public string FindVSCode()
|
||||
{
|
||||
if (File.Exists("/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code"))
|
||||
{
|
||||
return "/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code";
|
||||
}
|
||||
|
||||
var toolPath = "/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code";
|
||||
if (File.Exists(toolPath))
|
||||
return toolPath;
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
public string FindFleet()
|
||||
{
|
||||
if (File.Exists("/Applications/Fleet.app/Contents/MacOS/Fleet"))
|
||||
{
|
||||
return "/Applications/Fleet.app/Contents/MacOS/Fleet";
|
||||
}
|
||||
|
||||
var toolPath = $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/Applications/Fleet.app/Contents/MacOS/Fleet";
|
||||
if (File.Exists(toolPath))
|
||||
return toolPath;
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue