From ec021435034350dbb2b53bd830f3ad6bec525974 Mon Sep 17 00:00:00 2001 From: Gene Date: Sat, 7 Jan 2023 00:33:19 +0100 Subject: [PATCH] v1.4.0-beta.7 - Fix release update system --- src/HomeGenie/Service/UpdateChecker.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HomeGenie/Service/UpdateChecker.cs b/src/HomeGenie/Service/UpdateChecker.cs index 7c40307c..dd32bf90 100644 --- a/src/HomeGenie/Service/UpdateChecker.cs +++ b/src/HomeGenie/Service/UpdateChecker.cs @@ -260,7 +260,7 @@ public List GetGitHubUpdates() foreach (dynamic relFile in ((JArray)rel.assets)) { string relFileName = relFile.browser_download_url.ToString(); - if (relFileName.StartsWith("homegenie_") && relFileName.EndsWith("_update.tgz")) + if (relFileName.IndexOf("/homegenie_", StringComparison.Ordinal) > 0 && relFileName.EndsWith("_update.tgz")) { DateTime releaseDate = DateTime.ParseExact(relFile.updated_at.ToString(), "yyyy-MM-ddTHH:mm:ssZ", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal); releaseDate = releaseDate.Round(DateTimeExtensions.RoundTo.Minute).ToUniversalTime();