1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-06 08:15:59 +02:00

Merge pull request #2222 from MineBill/linux-package-manager

Make the package manager work on Linux.
This commit is contained in:
Brian Fiete 2025-05-10 12:00:11 +02:00 committed by GitHub
commit 262d3179b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 29 additions and 3 deletions

View file

@ -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;

View file

@ -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;