Skip to content
Snippets Groups Projects
Commit 486646d9 authored by John Schihada's avatar John Schihada
Browse files

Adjusted StartServer-Script, macos works just like for windows

parent bdca228e
No related branches found
No related tags found
No related merge requests found
......@@ -101,25 +101,6 @@ IEnumerator ServerRoutine()
proc.UseShellExecute = true;
process = Process.Start(proc);
#elif UNITY_STANDALONE_OSX
/*
ProcessStartInfo proc = new ProcessStartInfo();//"open", "sh startServer.sh");// + " \"" +Application.streamingAssetsPath + "\"");
proc.FileName = "/bin/bash";
proc.WorkingDirectory = Application.streamingAssetsPath;
proc.Arguments = "sh " + Application.streamingAssetsPath+"/startServer.sh";
proc.CreateNoWindow = false;
proc.UseShellExecute = true;
process = Process.Start(proc);
*/
ProcessStartInfo proc = new ProcessStartInfo();
String startServerPath = Application.streamingAssetsPath + "/startServer.sh";
String runWithTerminalPath = Application.streamingAssetsPath + "/startInTerminal.sh";
proc.FileName = "/bin/bash";
proc.Arguments = runWithTerminalPath + " /bin/bash " + startServerPath;
proc.CreateNoWindow = false;
proc.UseShellExecute = true;
process = Process.Start(proc);
#else
processInfo = new ProcessStartInfo();
processInfo.FileName = "java";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment