Fixing paths related issue

This commit is contained in:
Pavel Shevaev 2023-10-23 15:25:09 +03:00
parent 2ff2170fd5
commit 7d5c3e4b04
1 changed files with 5 additions and 2 deletions

View File

@ -3,11 +3,14 @@ namespace taskman;
use Exception;
task('composer', function($args) {
global $GAME_ROOT;
$files = glob(__DIR__ . '/../composer/composer-*.phar');
$composer_dir = $GAME_ROOT . '/composer/';
$files = glob($composer_dir . '/composer-*.phar');
$PHAR = basename($files[0]);
$cmd = "cd " . __DIR__ . "/../composer/ && ";
$cmd = "cd $composer_dir && ";
if(PHP_OS_FAMILY === 'Darwin')
{
$cmd .= "DYLD_LIBRARY_PATH='" . getenv("DYLD_LIBRARY_PATH") . "' " .