From a896995d3b289599f655492c61273e4ba82b180c Mon Sep 17 00:00:00 2001 From: Ross Goldberg <484615+rgoldberg@users.noreply.github.com> Date: Tue, 7 Nov 2023 08:11:10 -0500 Subject: [PATCH] Only check for macOS updates, ignoring other platforms like iOS, iPadOS, etc. Copied from PR #496 by @WangEdward Resolves #336 & #491 --- Sources/MasKit/Controllers/StoreSearch.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/MasKit/Controllers/StoreSearch.swift b/Sources/MasKit/Controllers/StoreSearch.swift index 4fcb5a217..d96c2dfcf 100644 --- a/Sources/MasKit/Controllers/StoreSearch.swift +++ b/Sources/MasKit/Controllers/StoreSearch.swift @@ -48,7 +48,10 @@ extension StoreSearch { return nil } - components.queryItems = [URLQueryItem(name: "id", value: "\(appId)")] + components.queryItems = [ + URLQueryItem(name: "id", value: "\(appId)"), + URLQueryItem(name: "entity", value: "desktopSoftware"), + ] if let country = country { components.queryItems!.append(country)