From 62567e2d40172435b867f2b8cadf350eac49da89 Mon Sep 17 00:00:00 2001 From: wrenge Date: Thu, 6 Jul 2023 22:19:58 +0300 Subject: [PATCH] unity task linux support --- unity.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/unity.inc.php b/unity.inc.php index b542044..cccb919 100644 --- a/unity.inc.php +++ b/unity.inc.php @@ -11,6 +11,12 @@ task('unity', function() $unity_app_path = "'$unity_path/Editor/Unity.exe'"; run_background_proc($unity_app_path, ['-projectPath', "$proj_path"]); } + else if(is_linux()) + { + $unity_path = get('UNITY_APP_DIR'); + $unity_app_path = "'$unity_path/Editor/Unity'"; + run_background_proc($unity_app_path, ['-projectPath', "$proj_path"]); + } else { $cmd = guess_unity_app_dir()."'Unity.app/Contents/MacOS/Unity' -projectPath '$proj_path' > /dev/null 2>&1&";