Added a low-level task for unity_batch_exec
Publish PHP Package / docker (push) Successful in 6s Details

This commit is contained in:
Alexey Chubar 2024-10-14 12:58:06 +03:00
parent 2b11b6724b
commit eebc83e8a7
1 changed files with 13 additions and 0 deletions

View File

@ -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 <method name> <platform>\n";
return;
}
$func = $args[0];
$platform = $args[1];
unity_batch_exec($func, $platform);
});
function unity_run_proc($shared_cmd) function unity_run_proc($shared_cmd)
{ {
$app_dir = get('UNITY_APP_DIR'); $app_dir = get('UNITY_APP_DIR');