From 2b11b6724b353f70c8b0fa972359d6dd4741fc29 Mon Sep 17 00:00:00 2001 From: wrenge Date: Tue, 17 Sep 2024 17:34:50 +0300 Subject: [PATCH] Linux build fix --- unity.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unity.inc.php b/unity.inc.php index 00ff532..8a4f0fe 100644 --- a/unity.inc.php +++ b/unity.inc.php @@ -111,6 +111,10 @@ function unity_run_proc($shared_cmd) $unity_app_path = $app_dir . "Editor/Unity.exe"; $cmd = "powershell.exe (Start-Process '$unity_app_path'-ArgumentList '$shared_cmd' -passthru).Id"; } + else if(is_linux()) + { + $cmd = "'$app_dir/Editor/Unity' $shared_cmd > /dev/null & echo $!"; + } else { $cmd = "'$app_dir/Unity.app/Contents/MacOS/Unity' $shared_cmd > /dev/null & echo $!";