unity task linux support

This commit is contained in:
wrenge 2023-07-06 22:19:58 +03:00
parent bb0d8129f1
commit 62567e2d40
1 changed files with 6 additions and 0 deletions

View File

@ -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&";