taskman_deps/deps.inc.php

26 lines
438 B
PHP
Raw Normal View History

2022-05-18 10:39:08 +03:00
<?php
namespace taskman;
task('deps_update', function()
{
update_composer();
});
function update_composer()
{
global $GAME_ROOT;
include("$GAME_ROOT/composer/update.php");
2022-05-18 12:33:18 +03:00
touch("$GAME_ROOT/composer/composer.last");
2022-05-18 10:39:08 +03:00
}
function try_update_composer()
{
global $GAME_ROOT;
if(!need_to_regen("$GAME_ROOT/composer/composer.last", ["$GAME_ROOT/composer/composer.json"]))
return false;
update_composer();
return true;
}