Skip to content

A self-hosted media server and file management system

fix: git tag was truncated

aminnausin96715100e5d2
diff --git a/app/Console/Commands/GenerateManifest.php b/app/Console/Commands/GenerateManifest.php
index e86ea5ca..fb3b1a3e 100644
--- a/app/Console/Commands/GenerateManifest.php
+++ b/app/Console/Commands/GenerateManifest.php
@@ -12,14 +12,13 @@ class GenerateManifest extends Command {
public function handle() {
$staticCommit = (file_exists(base_path('COMMIT')) ? trim(file_get_contents(base_path('COMMIT'))) : env('GITHUB_SHA', ''));
- $staticVersion = (file_exists(base_path('VERSION')) ? trim(file_get_contents(base_path('VERSION'))) : null);
$commit = trim(shell_exec('git rev-parse --short HEAD') ?? '')
?: substr($staticCommit, 0, 7)
?: 'unknown';
$version = trim(shell_exec('git describe --tags --abbrev=0') ?? '')
- ?: substr($staticVersion, 0, 7)
+ ?: (file_exists(base_path('VERSION')) ? trim(file_get_contents(base_path('VERSION'))) : null)
?: env('GITHUB_REF_NAME', 'unknown');
$data = json_encode([