mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-23 08:09:41 +01:00
Change release notes URL to point to release notes page: https://github.com/Ranchero-Software/NetNewsWire/releases/
This commit is contained in:
parent
fdc5fd5b72
commit
799d3f3894
@ -20,18 +20,8 @@ extension URL {
|
||||
scheme == "mailto" ? self.string.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)?.url : nil
|
||||
}
|
||||
|
||||
/// URL pointing to current app version release notes.
|
||||
static var releaseNotes: URL {
|
||||
let appVersion = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? ""
|
||||
var gitHub = "https://github.com/Ranchero-Software/NetNewsWire/releases/tag/"
|
||||
#if os(macOS)
|
||||
gitHub += "mac-\(String(describing: appVersion))"
|
||||
return URL(string: gitHub)!
|
||||
#else
|
||||
gitHub += "ios-\(String(describing: appVersion))"
|
||||
return URL(string: gitHub)!
|
||||
#endif
|
||||
}
|
||||
/// Reverse chronological list of release notes.
|
||||
static var releaseNotes = URL(string: "https://github.com/Ranchero-Software/NetNewsWire/releases/")!
|
||||
|
||||
func valueFor(_ parameter: String) -> String? {
|
||||
guard let components = URLComponents(url: self, resolvingAgainstBaseURL: false),
|
||||
|
Loading…
Reference in New Issue
Block a user