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

Adjusted StartServer-Scipts: Now works equally for Windows, Linux and macOS

parent 486646d9
No related branches found
No related tags found
No related merge requests found
...@@ -88,20 +88,10 @@ IEnumerator ServerRoutine() ...@@ -88,20 +88,10 @@ IEnumerator ServerRoutine()
#if!UNITY_WEBGL #if!UNITY_WEBGL
//#if UNITY_STANDALONE_LINUX
#if UNITY_STANDALONE_LINUX //#elif UNITY_STANDALONE_OSX
//#else
ProcessStartInfo proc = new ProcessStartInfo();
proc.FileName = "bash";
// proc.WorkingDirectory = Application.streamingAssetsPath;
proc.Arguments = Application.streamingAssetsPath+"/startServer.sh";// + " \"" +Application.streamingAssetsPath + "\"";
proc.WindowStyle = ProcessWindowStyle.Normal;
proc.CreateNoWindow = false;
proc.UseShellExecute = true;
process = Process.Start(proc);
#else
processInfo = new ProcessStartInfo(); processInfo = new ProcessStartInfo();
processInfo.FileName = "java"; processInfo.FileName = "java";
processInfo.Arguments = @"-jar " + Application.streamingAssetsPath + "/frameit.jar" + " -bind :8085 -archive-root " + Application.streamingAssetsPath + "/archives"; processInfo.Arguments = @"-jar " + Application.streamingAssetsPath + "/frameit.jar" + " -bind :8085 -archive-root " + Application.streamingAssetsPath + "/archives";
...@@ -110,7 +100,7 @@ IEnumerator ServerRoutine() ...@@ -110,7 +100,7 @@ IEnumerator ServerRoutine()
processInfo.CreateNoWindow = true; processInfo.CreateNoWindow = true;
process = Process.Start(processInfo); process = Process.Start(processInfo);
#endif //#endif
yield return null; yield return null;
#endif #endif
while (true) while (true)
......
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