From 40e02e7e66070f067a012f462fcb1b7c2c60836f Mon Sep 17 00:00:00 2001 From: bastimeyer Date: Tue, 23 Sep 2025 14:24:04 +0200 Subject: [PATCH] Fix GithubReleasesUpdateInformation::buildUrl() Use the `name` property instead of `browser_download_url` from the GitHub API response for matching the update file pattern. --- src/updateinformation/GithubReleasesZsyncUpdateInformation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/updateinformation/GithubReleasesZsyncUpdateInformation.cpp b/src/updateinformation/GithubReleasesZsyncUpdateInformation.cpp index eebd154..ca1ce27 100644 --- a/src/updateinformation/GithubReleasesZsyncUpdateInformation.cpp +++ b/src/updateinformation/GithubReleasesZsyncUpdateInformation.cpp @@ -63,8 +63,9 @@ namespace appimage::update::updateinformation { for (const auto& asset : assets) { const auto browserDownloadUrl = asset["browser_download_url"].get(); + const auto name = asset["name"].get(); - if (fnmatch(pattern.c_str(), browserDownloadUrl.c_str(), 0) == 0) { + if (fnmatch(pattern.c_str(), name.c_str(), 0) == 0) { matchingUrls.emplace_back(browserDownloadUrl); } }