feat: added a macOS version when asking for an update. It allows to return the last available version of Stats for specific macOS.

This commit is contained in:
Serhiy Mytrovtsiy
2022-12-17 23:15:38 +01:00
parent 6b487cb3a8
commit fd10fc42f9

View File

@@ -62,7 +62,7 @@ public class Updater {
public init(github: String, url: String) {
self.github = URL(string: "https://api.github.com/repos/\(github)/releases/latest")!
self.server = URL(string: url)!
self.server = URL(string: "\(url)?macOS=\(ProcessInfo().operatingSystemVersion.getFullVersion())")!
}
deinit {