unity task linux support
This commit is contained in:
parent
bb0d8129f1
commit
62567e2d40
|
@ -11,6 +11,12 @@ task('unity', function()
|
||||||
$unity_app_path = "'$unity_path/Editor/Unity.exe'";
|
$unity_app_path = "'$unity_path/Editor/Unity.exe'";
|
||||||
run_background_proc($unity_app_path, ['-projectPath', "$proj_path"]);
|
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
|
else
|
||||||
{
|
{
|
||||||
$cmd = guess_unity_app_dir()."'Unity.app/Contents/MacOS/Unity' -projectPath '$proj_path' > /dev/null 2>&1&";
|
$cmd = guess_unity_app_dir()."'Unity.app/Contents/MacOS/Unity' -projectPath '$proj_path' > /dev/null 2>&1&";
|
||||||
|
|
Loading…
Reference in New Issue