Skip to content

Commit 49008d0

Browse files
authored
[Hotfix] v0.14.2-beta2 (alexjustesen#1014)
1 parent b8b8ed8 commit 49008d0

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

app/Services/SystemChecker.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ public function getVersions(): self
2626

2727
public function getLocalVersion()
2828
{
29-
return cache()->remember($this->cacheKeyLocal, now()->addDay(), function () {
30-
return shell_exec('git describe --tag --abbrev=0');
31-
});
29+
return config('speedtest.build_version');
3230
}
3331

3432
public function getRemoteVersion()
@@ -42,7 +40,7 @@ public function isOutOfDate()
4240
{
4341
$this->getVersions();
4442

45-
return $this->localVersion < $this->remoteVersion || $this->localVersion != $this->remoteVersion;
43+
return 'v'.$this->localVersion != $this->remoteVersion;
4644
}
4745

4846
public function flushVersionData()

config/speedtest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
use Carbon\Carbon;
44

55
return [
6+
/**
7+
* Build information
8+
*/
9+
'build_date' => Carbon::parse('2023-12-23'),
10+
11+
'build_version' => '0.14.2-beta2',
12+
613
/**
714
* General
815
*/

0 commit comments

Comments
 (0)