mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-06 00:05:59 +02:00
Merge pull request #2222 from MineBill/linux-package-manager
Make the package manager work on Linux.
This commit is contained in:
commit
262d3179b1
3 changed files with 29 additions and 3 deletions
|
@ -95,6 +95,8 @@ class GitManager
|
|||
if (!File.Exists(gitPath))
|
||||
gitPath.Clear();
|
||||
}
|
||||
|
||||
psi.UseShellExecute = false;
|
||||
#endif
|
||||
if (gitPath.IsEmpty)
|
||||
gitPath.Set("git");
|
||||
|
@ -103,7 +105,6 @@ class GitManager
|
|||
psi.SetArguments(mArgs);
|
||||
if (mPath != null)
|
||||
psi.SetWorkingDirectory(mPath);
|
||||
psi.UseShellExecute = false;
|
||||
psi.RedirectStandardError = true;
|
||||
psi.RedirectStandardOutput = true;
|
||||
psi.CreateNoWindow = true;
|
||||
|
|
|
@ -179,7 +179,12 @@ namespace IDE.util
|
|||
if (!CheckInit())
|
||||
return;
|
||||
|
||||
String beefBuildPath = scope $"{gApp.mInstallDir}BeefBuild.exe";
|
||||
#if BF_PLATFORM_WINDOWS
|
||||
let ext = ".exe";
|
||||
#else
|
||||
let ext = "";
|
||||
#endif
|
||||
String beefBuildPath = scope $"{gApp.mInstallDir}BeefBuild{ext}";
|
||||
String args = scope $"-run";
|
||||
var execInst = gApp.DoRun(beefBuildPath, args, path, .None);
|
||||
execInst?.mAutoDelete = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue