Merge pull request #1567 from jparise/appcast-commit-link

dist/macos: link the commit to GitHub's history view
This commit is contained in:
Mitchell Hashimoto
2024-03-05 12:08:22 -08:00
committed by GitHub

View File

@ -22,6 +22,7 @@ from datetime import datetime, timezone
now = datetime.now(timezone.utc) now = datetime.now(timezone.utc)
build = os.environ["GHOSTTY_BUILD"] build = os.environ["GHOSTTY_BUILD"]
commit = os.environ["GHOSTTY_COMMIT"] commit = os.environ["GHOSTTY_COMMIT"]
repo = "https://github.com/mitchellh/ghostty"
# Read our sign_update output # Read our sign_update output
with open("sign_update.txt", "r") as f: with open("sign_update.txt", "r") as f:
@ -81,12 +82,14 @@ elem = ET.SubElement(item, "sparkle:minimumSystemVersion")
elem.text = "12.0.0" elem.text = "12.0.0"
elem = ET.SubElement(item, "description") elem = ET.SubElement(item, "description")
elem.text = f""" elem.text = f"""
<p>Automated build from commit <code>{commit}</code> on {now.strftime('%Y-%m-%d')}.</p> <p>
Automated build from commit <code><a href="{repo}/commits/{commit}">{commit}</a></code>
on {now.strftime('%Y-%m-%d')}.
</p>
<p> <p>
These are automatic per-commit builds generated from the main Git branch. These are automatic per-commit builds generated from the main Git branch.
We do not generate any release notes for these builds. You can view the full We do not generate any release notes for these builds. You can view the full
commit history commit history <a href="{repo}">on GitHub</a> for all changes.
<a href="https://github.com/mitchellh/ghostty">on GitHub</a> for all changes.
</p> </p>
""" """
elem = ET.SubElement(item, "enclosure") elem = ET.SubElement(item, "enclosure")