0

I am having issues with running this .sh file through C# on MacOS. I have tried using the following code, but it doesn't seem to work. The .sh file does not execute and I don't get any errors. Can anyone help me figure out what's going wrong?

cmake -DCMAKE_SYSTEM_PROCESSOR=arm64 -DCMAKE_OSX_ARCHITECTURES=arm64 ..
make -j24
public static ProcessStartInfo GetMacOSStartInfo(string path)
{
    string fileName = "/bin/bash";
    string argument = path;
    return new ProcessStartInfo
    {
        FileName = fileName,
        Arguments = argument,
        UseShellExecute = false,
        RedirectStandardOutput = true,
        RedirectStandardError = true,
        CreateNoWindow = true,
        WindowStyle = ProcessWindowStyle.Hidden,
    };
}
Jerry
  • 23
  • 4

0 Answers0