From eebc83e8a7ad98fa1db348b3d7d5d3a10056422c Mon Sep 17 00:00:00 2001 From: "a.chubar" Date: Mon, 14 Oct 2024 12:58:06 +0300 Subject: [PATCH] Added a low-level task for unity_batch_exec --- unity.inc.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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');