Final fix for v5.0.8 update.

This commit is contained in:
Toastie (DCS Team) 2024-06-23 20:25:41 +12:00
parent f843001bef
commit 93e16d60c2
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
3 changed files with 4 additions and 14 deletions

View file

@ -2,16 +2,6 @@
Mostly based on [keepachangelog](https://keepachangelog.com/en/1.0.0/) except date format. a-c-f-r-o
## [5.0.9] - 23.06.2024
### Changed
- Updated the links so EllieBot can properly check for updates.
### Fixed
- Re-Added marmalades/marmalade.yml so the compiled build works.
## [5.0.8] - 19.06.2024
### Added

View file

@ -4,7 +4,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
<Version>5.0.9</Version>
<Version>5.0.8</Version>
<!-- Output/build -->
<RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory>

View file

@ -51,13 +51,13 @@ public sealed class CheckForUpdatesService : IEService, IReadyExecutor
try
{
using var http = _httpFactory.CreateClient();
var gitlabRelease = (await http.GetFromJsonAsync<ToastielabReleaseModel[]>(RELEASES_URL))
var toastielabRelease = (await http.GetFromJsonAsync<ToastielabReleaseModel[]>(RELEASES_URL))
?.FirstOrDefault();
if (gitlabRelease?.TagName is null)
if (toastielabRelease?.TagName is null)
continue;
var latest = gitlabRelease.TagName;
var latest = toastielabRelease.TagName;
var latestVersion = Version.Parse(latest);
var lastKnownVersion = GetLastKnownVersion();