mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
feature<Linux>: try to support Linux
This commit is contained in:
parent
79084c9a9a
commit
cf09ab463c
3 changed files with 87 additions and 1 deletions
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
|
||||
namespace SourceGit.Native {
|
||||
public static class OS {
|
||||
|
@ -31,6 +30,9 @@ namespace SourceGit.Native {
|
|||
} else if (OperatingSystem.IsWindows()) {
|
||||
_backend = new Windows();
|
||||
VSCodeExecutableFile = _backend.FindVSCode();
|
||||
} else if (OperatingSystem.IsLinux()) {
|
||||
_backend = new Linux();
|
||||
VSCodeExecutableFile = _backend.FindVSCode();
|
||||
} else {
|
||||
throw new Exception("Platform unsupported!!!");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue