Skip to content

Commit

Permalink
修复全局命令和文件执行无法拉起的Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
猿人易 committed Sep 19, 2023
1 parent dcff7c3 commit 33b0536
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Stardust/Managers/ServiceController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,16 @@ private Process RunZip(String file, String args, String workDir, ServiceInfo ser
private Process RunExe(String file, String args, String workDir, ServiceInfo service)
{
//WriteLog("拉起进程:{0} {1}", file, args);

var fileName = workDir.CombinePath(file).GetFullPath();
if (!fileName.AsFile().Exists)
{
fileName = file;
}

var si = new ProcessStartInfo
{
FileName = workDir.CombinePath(file).GetFullPath(),
FileName = fileName,
Arguments = args,
WorkingDirectory = workDir,

Expand Down

0 comments on commit 33b0536

Please sign in to comment.