增加git版本号系统

This commit is contained in:
Enoch 2024-11-07 23:38:32 +08:00
parent d2830b6d31
commit 4939723556

View File

@ -1,5 +1,8 @@
#!/usr/bin/env php #!/usr/bin/env php
<?php <?php
require_once __DIR__ . '/vendor/autoload.php'; require_once __DIR__ . '/vendor/autoload.php';
echo "Version: 1.0.3\n"; $hash=exec('git rev-parse --short HEAD');
$git_address=exec('git remote -v | grep fetch');
print_r('===========Laysense Webman Start=============');
echo "Version: 1.0.4 | Git Hash: $hash | Git Url: $git_address \n";
support\App::run(); support\App::run();