Add build number to the release note lookup

This commit is contained in:
Maurice Parker
2022-11-13 19:05:03 -06:00
parent e1d9455ffc
commit 35e57f4d98
3 changed files with 10 additions and 6 deletions

View File

@@ -22,15 +22,17 @@ extension URL {
/// 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)!
gitHub += "mac-"
#else
gitHub += "ios-\(String(describing: appVersion))"
return URL(string: gitHub)!
gitHub += "ios-"
#endif
gitHub += "\(Bundle.main.versionNumber)-\(Bundle.main.buildNumber)"
return URL(string: gitHub)!
}
func valueFor(_ parameter: String) -> String? {