diff --git a/app/Services/SystemChecker.php b/app/Services/SystemChecker.php index c52b8e93f..031f6d13e 100644 --- a/app/Services/SystemChecker.php +++ b/app/Services/SystemChecker.php @@ -26,9 +26,7 @@ public function getVersions(): self public function getLocalVersion() { - return cache()->remember($this->cacheKeyLocal, now()->addDay(), function () { - return shell_exec('git describe --tag --abbrev=0'); - }); + return config('speedtest.build_version'); } public function getRemoteVersion() @@ -42,7 +40,7 @@ public function isOutOfDate() { $this->getVersions(); - return $this->localVersion < $this->remoteVersion || $this->localVersion != $this->remoteVersion; + return 'v'.$this->localVersion != $this->remoteVersion; } public function flushVersionData() diff --git a/config/speedtest.php b/config/speedtest.php index dcd1362a9..df2374fca 100644 --- a/config/speedtest.php +++ b/config/speedtest.php @@ -3,6 +3,13 @@ use Carbon\Carbon; return [ + /** + * Build information + */ + 'build_date' => Carbon::parse('2023-12-23'), + + 'build_version' => '0.14.2-beta2', + /** * General */