hellbound/gamectl.d/deps.php

46 lines
756 B
PHP
Raw Permalink Normal View History

2021-11-26 11:16:25 +03:00
<?php
/**
* @alias dup
*/
function task_deps_update()
{
update_composer();
}
/**
* @always
*/
function task_try_deps_update()
{
try_update_composer();
}
function update_composer()
{
global $GAME_ROOT;
include("$GAME_ROOT/utils/composer/update.php");
}
function try_update_composer()
{
global $GAME_ROOT;
if(!need_to_regen("$GAME_ROOT/utils/composer/composer.last", array("$GAME_ROOT/utils/composer/composer.json")))
return;
update_composer();
touch("$GAME_ROOT/utils/composer/composer.last");
}
function task_build_deps()
{
taskman_shell_ensure("brew install bundletool");
}
function task_install_deps()
{
taskman_shell_ensure("brew install libimobiledevice");
taskman_shell_ensure("brew install ideviceinstaller");
}