From b81fc362c42339873bc859da446f347f2c7756e0 Mon Sep 17 00:00:00 2001
From: unknown <john.schihada@hotmail.com>
Date: Sun, 17 Jan 2021 19:47:50 +0100
Subject: [PATCH] Adjusted StartServer-Scipts: Now works equally for Windows,
 Linux and macOS

---
 Assets/Scripts/StartServer.cs | 20 +++++---------------
 1 file changed, 5 insertions(+), 15 deletions(-)

diff --git a/Assets/Scripts/StartServer.cs b/Assets/Scripts/StartServer.cs
index cc7d23a5..f7ede050 100644
--- a/Assets/Scripts/StartServer.cs
+++ b/Assets/Scripts/StartServer.cs
@@ -88,20 +88,10 @@ IEnumerator ServerRoutine()
 
 
 #if!UNITY_WEBGL
-
-
-#if UNITY_STANDALONE_LINUX
-
-            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
+            
+//#if UNITY_STANDALONE_LINUX
+//#elif UNITY_STANDALONE_OSX
+//#else
             processInfo = new ProcessStartInfo();
             processInfo.FileName = "java";
             processInfo.Arguments = @"-jar " + Application.streamingAssetsPath + "/frameit.jar" + " -bind :8085 -archive-root " + Application.streamingAssetsPath + "/archives";
@@ -110,7 +100,7 @@ IEnumerator ServerRoutine()
             processInfo.CreateNoWindow = true;
 
             process = Process.Start(processInfo);
-#endif
+//#endif
             yield return null;
 #endif
             while (true)
-- 
GitLab