From d3de22ce284638e6b5f3a1ac7a6522e684428d88 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 20 Dec 2024 14:42:04 -0800 Subject: [PATCH] ci: generate a correct sparkle version string for tagged releases --- dist/macos/update_appcast_tag.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/macos/update_appcast_tag.py b/dist/macos/update_appcast_tag.py index 86aa0bed0..edda6d7ca 100644 --- a/dist/macos/update_appcast_tag.py +++ b/dist/macos/update_appcast_tag.py @@ -79,21 +79,21 @@ elem.text = now.strftime(pubdate_format) elem = ET.SubElement(item, "sparkle:version") elem.text = build elem = ET.SubElement(item, "sparkle:shortVersionString") -elem.text = f"{commit} ({now.strftime('%Y-%m-%d')})" +elem.text = f"{version}" elem = ET.SubElement(item, "sparkle:minimumSystemVersion") elem.text = "13.0.0" elem = ET.SubElement(item, "description") elem.text = f"""

Ghostty v{version}

+This release was built from commit {commit} +on {now.strftime('%Y-%m-%d')}. +

+

We don't currently generate release notes for auto-updates. You can view the complete changelog and release notes on the Ghostty website.

-

-This release was built from commit {commit} -on {now.strftime('%Y-%m-%d')}. -

""" elem = ET.SubElement(item, "enclosure") elem.set("url", f"https://release.files.ghostty.org/{version}/ghostty-macos-universal.zip")