fix: a gh: deb missing from the latest release comes from the newest one that has it

ghostty-ubuntu 1.4.0 builds for 26.04 and later only, so apps/ghostty
failed on every fresh 24.04 box with "no release asset matching". Fall back
to the release list, newest first.
This commit is contained in:
bcherb2 committed 2026-11-18 02:45:18 -05:00
1 parent 0a5ec74fa5
commit d8b0e22052
3 files changed
+25

No files matched your search

+9
View File
@@ -82,6 +82,15 @@ https://github.com/ryanoasis/nerd-fonts/releases/latest/download/*.tar.xz)
tar -cJf - -C "$d" . | emit; rm -rf "$d"; exit 0 ;;
*go.dev/VERSION*)
echo go1.99.0; exit 0 ;;
# ghostty-ubuntu's shape after 1.4.0: the latest release builds only for newer
# Ubuntu, and the asset for this machine's release is in an older one.
*api.github.com/repos/mkasberg/ghostty-ubuntu/releases/latest)
echo ' "browser_download_url": "https://example.invalid/ghostty_9.9-0.ppa1_amd64_99.99.deb"'; exit 0 ;;
*api.github.com/repos/mkasberg/ghostty-ubuntu/releases[?]*)
v=$( . /etc/os-release 2>/dev/null; printf '%s' "${VERSION_ID:-}" )
echo ' "browser_download_url": "https://example.invalid/ghostty_9.9-0.ppa1_amd64_99.99.deb"'
echo " \"browser_download_url\": \"https://example.invalid/ghostty_9.8-0.ppa1_amd64_$v.deb\""
echo " \"browser_download_url\": \"https://example.invalid/ghostty_9.7-0.ppa1_amd64_$v.deb\""; exit 0 ;;
*api.github.com*)
echo ' "browser_download_url": "https://example.invalid/fake_amd64.deb"'; exit 0 ;;