Removed pre-release special version handling

This commit is contained in:
Bernd Bestel
2023-05-24 20:32:48 +02:00
parent 8c033ff6c8
commit 70bb014c9f
6 changed files with 11 additions and 20 deletions

View File

@@ -53,15 +53,6 @@ class ApplicationService extends BaseService
if ($this->InstalledVersion == null)
{
$this->InstalledVersion = json_decode(file_get_contents(__DIR__ . '/../version.json'));
if (GROCY_MODE === 'prerelease')
{
$commitHash = trim(exec('git log --pretty="%h" -n1 HEAD'));
$commitDate = trim(exec('git log --date=iso --pretty="%cd" -n1 HEAD'));
$this->InstalledVersion->Version = "pre-release-$commitHash";
$this->InstalledVersion->ReleaseDate = substr($commitDate, 0, 19);
}
}
return $this->InstalledVersion;