Skip to content

Commit 140c4b2

Browse files
committed
[MOD] Updated app metadata
Signed-off-by: Rubén D <[email protected]>
1 parent 096326e commit 140c4b2

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

lib/SPDecrypter/Util/Version.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
*/
3232
final class Version
3333
{
34+
public static function getVersionString()
35+
{
36+
return sprintf('%s-%d', implode('.', array_slice(APP_VERSION, 0, 3)), APP_VERSION[3]);
37+
}
38+
3439
/**
3540
* Compare versions
3641
*

lib/SPDecrypter/bootstrap.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* along with syspass-decrypter. If not, see <http://www.gnu.org/licenses/>.
2323
*/
2424

25-
define('APP_VERSION', [0, 1, 0, 19082401]);
25+
define('APP_VERSION', [0, 1, 1, 19090201]);
2626
define('XML_MIN_VERSION', [3, 0, 0, 0]);
2727
define('DS', DIRECTORY_SEPARATOR);
2828
define('XML_SCHEMA', APP_BASE_DIR . DS . 'schemas' . DS . 'syspass.xsd');
@@ -31,6 +31,7 @@
3131

3232
use DI\ContainerBuilder;
3333
use SPDecrypter\Commands\SearchAccountCommand;
34+
use SPDecrypter\Util\Version;
3435
use Symfony\Component\Console\Application;
3536
use Symfony\Component\Console\Input\InputInterface;
3637
use Symfony\Component\Console\Output\OutputInterface;
@@ -41,6 +42,8 @@
4142
$dic = $builder->build();
4243

4344
$app = new Application();
45+
$app->setName('sysPass Decrypter');
46+
$app->setVersion(Version::getVersionString());
4447
$app->add($dic->get(SearchAccountCommand::class));
4548
$app->run($dic->get(InputInterface::class), $dic->get(OutputInterface::class));
4649
} catch (Exception $e) {

0 commit comments

Comments
 (0)