From ee273106101cee79b4b792bad51ec0b65a20e360 Mon Sep 17 00:00:00 2001 From: Breadway Date: Thu, 18 Jun 2026 21:03:33 +0800 Subject: [PATCH] fix: use dl_url not github_url for bakery binary downloads MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit github_url points to GitHub releases that aren't always published for dev/patch versions (bread v0.6.4 exists on dl.breadway.dev but not on GitHub). dl.breadway.dev is publicly accessible and is the canonical source — use dl_url from the bakery index instead. Co-Authored-By: Claude Sonnet 4.6 Claude-Session: https://claude.ai/code/session_01FHr5CeufsAfTrt41XoApir --- .forgejo/workflows/release-iso.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/release-iso.yml b/.forgejo/workflows/release-iso.yml index 8025026..078e24a 100644 --- a/.forgejo/workflows/release-iso.yml +++ b/.forgejo/workflows/release-iso.yml @@ -61,8 +61,9 @@ jobs: curl -fsSL "https://dl.breadway.dev/index.json" \ -o /build-home/.cache/bakery/index.json - # Download each binary from its pinned GitHub release URL and - # generate the installed.json that bakery expects in ~/.local/state. + # Download each binary from dl.breadway.dev (canonical source; github_url + # is not always published for dev/patch releases) and generate the + # installed.json that bakery expects in ~/.local/state. python3 << 'PYEOF' import json, urllib.request, os @@ -77,8 +78,9 @@ jobs: for b in pkg['binaries']: dest_name = b['name'].removesuffix('-x86_64') dest = os.path.join(BIN_DIR, dest_name) - print(f' {dest_name} <- {b["github_url"]}', flush=True) - urllib.request.urlretrieve(b['github_url'], dest) + url = b['dl_url'] + print(f' {dest_name} <- {url}', flush=True) + urllib.request.urlretrieve(url, dest) os.chmod(dest, 0o755) bins.append(dest_name)