2020-08-13 08:24:54 +08:00
|
|
|
//
|
|
|
|
// ReleaseNotes.swift
|
|
|
|
// NetNewsWire
|
|
|
|
//
|
|
|
|
// Created by Stuart Breckenridge on 13/8/20.
|
|
|
|
// Copyright © 2020 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
|
|
|
struct ReleaseNotes {
|
|
|
|
|
2020-08-15 15:01:00 +08:00
|
|
|
@available(*, unavailable, message: "Use URL.releaseNotes")
|
2020-08-13 08:24:54 +08:00
|
|
|
var url: URL {
|
|
|
|
var gitHub = "https://github.com/Ranchero-Software/NetNewsWire/releases/tag/"
|
|
|
|
#if os(macOS)
|
|
|
|
gitHub += "mac-\(String(describing: versionString()))"
|
|
|
|
return URL(string: gitHub)!
|
|
|
|
#else
|
2020-08-13 09:20:12 +08:00
|
|
|
gitHub += "ios-\(String(describing: versionString()))"
|
2020-08-13 08:24:54 +08:00
|
|
|
return URL(string: gitHub)!
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
private func versionString() -> String {
|
|
|
|
Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? ""
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|