mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-12-19 08:35:46 +01:00
Revert "macos: populate the sparkle:channel element"
This commit is contained in:
committed by
GitHub
parent
051e6543ff
commit
78e539d684
2
dist/macos/update_appcast_tag.py
vendored
2
dist/macos/update_appcast_tag.py
vendored
@@ -77,8 +77,6 @@ elem = ET.SubElement(item, "title")
|
||||
elem.text = f"Build {build}"
|
||||
elem = ET.SubElement(item, "pubDate")
|
||||
elem.text = now.strftime(pubdate_format)
|
||||
elem = ET.SubElement(item, "sparkle:channel")
|
||||
elem.text = "stable"
|
||||
elem = ET.SubElement(item, "sparkle:version")
|
||||
elem.text = build
|
||||
elem = ET.SubElement(item, "sparkle:shortVersionString")
|
||||
|
||||
2
dist/macos/update_appcast_tip.py
vendored
2
dist/macos/update_appcast_tip.py
vendored
@@ -75,8 +75,6 @@ elem = ET.SubElement(item, "title")
|
||||
elem.text = f"Build {build}"
|
||||
elem = ET.SubElement(item, "pubDate")
|
||||
elem.text = now.strftime(pubdate_format)
|
||||
elem = ET.SubElement(item, "sparkle:channel")
|
||||
elem.text = "tip"
|
||||
elem = ET.SubElement(item, "sparkle:version")
|
||||
elem.text = build
|
||||
elem = ET.SubElement(item, "sparkle:shortVersionString")
|
||||
|
||||
@@ -125,15 +125,7 @@ fileprivate struct UpdateAvailableView: View {
|
||||
let dismiss: DismissAction
|
||||
|
||||
private let labelWidth: CGFloat = 60
|
||||
|
||||
private func releaseDateString(date: Date, channel: String?) -> String {
|
||||
let dateString = date.formatted(date: .abbreviated, time: .omitted)
|
||||
if let channel, !channel.isEmpty {
|
||||
return "\(dateString) (\(channel))"
|
||||
}
|
||||
return dateString
|
||||
}
|
||||
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
VStack(alignment: .leading, spacing: 12) {
|
||||
@@ -165,7 +157,7 @@ fileprivate struct UpdateAvailableView: View {
|
||||
Text("Released:")
|
||||
.foregroundColor(.secondary)
|
||||
.frame(width: labelWidth, alignment: .trailing)
|
||||
Text(releaseDateString(date: date, channel: update.appcastItem.channel))
|
||||
Text(date.formatted(date: .abbreviated, time: .omitted))
|
||||
}
|
||||
.font(.system(size: 11))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user