feat #14740: fallback update endpoint

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
hauke
2026-11-06 11:41:12 +01:00
co-authored by Claude Opus 5.5
parent 74511d791a
commit bda584deda
4 changed files with 57 additions and 42 deletions
+11 -7
View File
@@ -1,14 +1,18 @@
# Where Gesprächsrekorder releases are published: the one place to change.
# Sourced by build-release.sh, which writes UPDATE_JSON_URL into
# Sourced by build-release.sh, which writes UPDATE_JSON_URLS into
# src-tauri/tauri.conf.json (plugins.updater.endpoints), and by
# make-latest-json.sh, which points the download URLs in latest.json at
# ${RELEASE_BASE_URL}/releases/download/v<version>/<file>. See RELEASING.md.
RELEASE_BASE_URL="https://gitea.euvino.eu/public/call-recorder"
# Where the app looks for latest.json.
# A (default): latest.json is an asset of the newest release.
UPDATE_JSON_URL="${RELEASE_BASE_URL}/releases/latest/download/latest.json"
# B: latest.json is committed to the root of master (if Gitea does not
# serve releases/latest/download/…):
# UPDATE_JSON_URL="${RELEASE_BASE_URL}/raw/branch/master/latest.json"
# Where the app looks for latest.json, tried in this order until one answers
# with a release:
# 1. latest.json as an asset of the newest release,
# 2. latest.json committed to the root of master.
# Once it is clear which one Gitea serves, the other can be dropped here (it
# then disappears from the next version built).
UPDATE_JSON_URLS=(
"${RELEASE_BASE_URL}/releases/latest/download/latest.json"
"${RELEASE_BASE_URL}/raw/branch/master/latest.json"
)