diff --git a/unity.inc.php b/unity.inc.php index 8a4f0fe..9b17391 100644 --- a/unity.inc.php +++ b/unity.inc.php @@ -101,6 +101,19 @@ function unity_batch_exec($func, $build_target = "") ); } +task('unity_batch_exec', function(array $args) +{ + if(count($args) != 2) + { + echo "Usage: gamectl unity_batch_exec \n"; + return; + } + + $func = $args[0]; + $platform = $args[1]; + unity_batch_exec($func, $platform); +}); + function unity_run_proc($shared_cmd) { $app_dir = get('UNITY_APP_DIR');