ci: generate a correct sparkle version string for tagged releases

This commit is contained in:
Mitchell Hashimoto
2024-12-20 14:42:04 -08:00
parent 663205b509
commit d3de22ce28

View File

@ -79,21 +79,21 @@ elem.text = now.strftime(pubdate_format)
elem = ET.SubElement(item, "sparkle:version") elem = ET.SubElement(item, "sparkle:version")
elem.text = build elem.text = build
elem = ET.SubElement(item, "sparkle:shortVersionString") 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 = ET.SubElement(item, "sparkle:minimumSystemVersion")
elem.text = "13.0.0" elem.text = "13.0.0"
elem = ET.SubElement(item, "description") elem = ET.SubElement(item, "description")
elem.text = f""" elem.text = f"""
<h1>Ghostty v{version}</h1> <h1>Ghostty v{version}</h1>
<p> <p>
This release was built from commit <code><a href="{repo}/commits/{commit_long}">{commit}</a></code>
on {now.strftime('%Y-%m-%d')}.
</p>
<p>
We don't currently generate release notes for auto-updates. We don't currently generate release notes for auto-updates.
You can view the complete changelog and release notes on You can view the complete changelog and release notes on
the <a href="https://ghostty.org">Ghostty website</a>. the <a href="https://ghostty.org">Ghostty website</a>.
</p> </p>
<p>
This release was built from commit <code><a href="{repo}/commits/{commit_long}">{commit}</a></code>
on {now.strftime('%Y-%m-%d')}.
</p>
""" """
elem = ET.SubElement(item, "enclosure") elem = ET.SubElement(item, "enclosure")
elem.set("url", f"https://release.files.ghostty.org/{version}/ghostty-macos-universal.zip") elem.set("url", f"https://release.files.ghostty.org/{version}/ghostty-macos-universal.zip")