fix(app): build update links from the releases repository address #7

Merged
Alby96 merged 2 commits from claude/update-links-from-releases-url into main 2026-10-23 14:39:14 +02:00
Owner

Gitea writes a release's html_url and browser_download_url with its ROOT_URL, which on this server is the plain-http LAN address http://192.168.30.23:3000. The in-app update check accepts only https links, so it ignored v0.1.0-rc.1 entirely.

What changes

  • UpdateCheck builds the release page (<repository>/releases/tag/<tag>) and the download links (<repository>/releases/download/<tag>/<name>) from ChronosReleasesUrl, the address the build names for its users (default https://gitea.encke-hake.ts.net/BalboSoft/Chronos). From Gitea's answer it reads only the tags, file names and sizes.
  • Without a repository address (tests), the answer's links are used as before.
  • BRIEF §18, DECISIONS and CHANGELOG (Unreleased › Fixed) record the change.

Verification

  • New test with the real shape of this Gitea's answer (http LAN links): the release is found and its page and download links are the https repository's, with file names escaped; an http repository address is still refused.
  • App update, download and flow tests: 54 passed.

Builds older than this fix (rc.1) still ignore releases; the next release carries the fix.

🤖 Generated with Claude Code

Gitea writes a release's `html_url` and `browser_download_url` with its ROOT_URL, which on this server is the plain-http LAN address `http://192.168.30.23:3000`. The in-app update check accepts only https links, so it ignored `v0.1.0-rc.1` entirely. ## What changes - `UpdateCheck` builds the release page (`<repository>/releases/tag/<tag>`) and the download links (`<repository>/releases/download/<tag>/<name>`) from `ChronosReleasesUrl`, the address the build names for its users (default `https://gitea.encke-hake.ts.net/BalboSoft/Chronos`). From Gitea's answer it reads only the tags, file names and sizes. - Without a repository address (tests), the answer's links are used as before. - BRIEF §18, DECISIONS and CHANGELOG (Unreleased › Fixed) record the change. ## Verification - New test with the real shape of this Gitea's answer (http LAN links): the release is found and its page and download links are the https repository's, with file names escaped; an http repository address is still refused. - App update, download and flow tests: 54 passed. Builds older than this fix (rc.1) still ignore releases; the next release carries the fix. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Alby96 added 1 commit 2026-10-23 14:08:26 +02:00
fix(app): build update links from the releases repository address
CI / Build and test (pull_request) Failing after 2m28s
CI / PostgreSQL 16 integration (pull_request) Skipped
CI / PostgreSQL 17 integration (pull_request) Skipped
CI / Docker image (pull_request) Skipped
CI / Windows tests and installer (pull_request) Skipped
CI / YAML check (pull_request) Successful in 10s
ee2d32f70f
Gitea writes a release's html_url and browser_download_url with its ROOT_URL,
which on the owner's server is the plain-http LAN address
http://192.168.30.23:3000. The update check accepts only https links, so it
ignored v0.1.0-rc.1 entirely. The page and download links now come from
ChronosReleasesUrl, the address the build names for its users; only the
tags, file names and sizes are read from Gitea's answer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Alby96 added 1 commit 2026-10-23 14:20:18 +02:00
test: stretch the lease renewal test on a busy runner
CI / Build and test (pull_request) Successful in 5m54s
CI / Windows tests and installer (pull_request) Skipped
CI / YAML check (pull_request) Successful in 5s
CI / PostgreSQL 16 integration (pull_request) Successful in 4m14s
CI / PostgreSQL 17 integration (pull_request) Successful in 4m24s
CI / Docker image (pull_request) Successful in 59s
66dd86d154
Its 300 ms lease is renewed by a 100 ms timer; on the shared CI host the timer
came 700 ms late once. The duration now follows TestTiming like the other
timed tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Alby96 merged commit f80fc148bf into main 2026-10-23 14:39:14 +02:00
Sign in to join this conversation.