Skip to content

Commit

Permalink
v1.4.0-beta.7
Browse files Browse the repository at this point in the history
- Fix release update system
  • Loading branch information
genemars committed Jan 6, 2023
1 parent eda58ab commit ec02143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HomeGenie/Service/UpdateChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public List<ReleaseInfo> 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();
Expand Down

0 comments on commit ec02143

Please sign in to comment.