1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-14 06:14:10 +02:00

Added support for shell commands in postbuild/prebuild

This commit is contained in:
Brian Fiete 2020-01-23 07:44:09 -08:00
parent 480f909cec
commit ddc943876d
2 changed files with 22 additions and 2 deletions

View file

@ -1301,7 +1301,9 @@ namespace IDE
{
var exeArgs = scope String();
exeArgs.Append(cmd, spacePos + 1);
gApp.DoRun(exePath, exeArgs, gApp.mInstallDir, .None);
bool wantsShellCommand = !exePath.EndsWith(".exe", .OrdinalIgnoreCase);
gApp.DoRun(exePath, exeArgs, gApp.mInstallDir, .None, null, null, wantsShellCommand ? .ShellCommand : .None);
}
}