<?php
/**
 * Wrapper CLI pour PSLauncher\Tools\SignManifest.
 *
 * Usage : cd ~/www/PS_Launcher && php tools/sign-manifest.php
 *
 * Le backoffice admin appelle directement la classe (pas d'exec).
 */
declare(strict_types=1);

require __DIR__ . '/SignManifest.php';

$signer = new \PSLauncher\Tools\SignManifest(dirname(__DIR__));
$result = $signer->run();
foreach ($result['log'] as $line) echo $line . "\n";
exit($result['ok'] ? 0 : 1);
