chore #14740: drop appimage and the unsupported feed url

Verified on Gitea 1.27.3: releases/latest/download/<file> does not
redirect to a release's assets (404), so that update-feed endpoint is
dead. Only raw/branch/master/latest.json works; keep that one in
release.env and tauri.conf.json and document it as the mandatory feed
in RELEASING.md.

Also drop the AppImage (user: it is huge and we don't need it): bundle
targets become nsis+deb, build-release.sh only builds the .deb on
Linux, and make-latest-json.sh no longer writes a Linux platform entry
at all (Debian builds don't self-update).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
hauke
2026-11-06 12:29:53 +01:00
co-authored by Claude Sonnet 5
parent 572c685396
commit eff07d2f59
5 changed files with 43 additions and 73 deletions
+2 -3
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Builds a signed release of Gesprächsrekorder into dist-release/<version>/:
# the Windows NSIS installer (cross-built via build-windows.sh), the Linux
# deb and AppImage, their updater signatures (.sig) and latest.json.
# deb, their updater signatures (.sig) and latest.json.
# Sets <version> in tauri.conf.json, src-tauri/Cargo.toml and
# ui/package.json and leaves those changes for you to commit. Never tags or
# publishes anything; see RELEASING.md.
@@ -157,7 +157,7 @@ grep -qx "version = \"${VERSION}\"" "${CARGO_TOML}" || die "could not set the ve
# --- Build ------------------------------------------------------------------
"${SCRIPT_DIR}/build-windows.sh"
(cd "${REPO_ROOT}" && cargo tauri build --bundles deb appimage)
(cd "${REPO_ROOT}" && cargo tauri build --bundles deb)
# --- Collect ----------------------------------------------------------------
OUT="${REPO_ROOT}/dist-release/${VERSION}"
@@ -183,7 +183,6 @@ collect() {
}
collect "${WINDOWS_BUNDLE}" "*_${VERSION}_x64-setup.exe"
collect "${LINUX_BUNDLE}/deb" "*_${VERSION}_amd64.deb"
collect "${LINUX_BUNDLE}/appimage" "*_${VERSION}_amd64.AppImage"
"${SCRIPT_DIR}/make-latest-json.sh" "${VERSION}" "${OUT}"
jq -e . "${OUT}/latest.json" >/dev/null || die "latest.json is not valid JSON"
+2 -8
View File
@@ -2,7 +2,8 @@
# Writes <dir>/latest.json, the update feed the app reads, from the signed
# release artifacts in <dir>:
# windows-x86_64 -> *_<version>_x64-setup.exe (+ .sig)
# linux-x86_64 -> *_<version>_amd64.AppImage (+ .sig)
# Debian builds do not self-update, so the .deb is not listed here (it is
# still a release asset, just not part of the feed).
# The download URLs point at ${RELEASE_BASE_URL}/releases/download/v<version>/
# (scripts/release.env).
#
@@ -38,7 +39,6 @@ signed_file() {
}
WINDOWS="$(signed_file "*_${VERSION}_x64-setup.exe")"
LINUX="$(signed_file "*_${VERSION}_amd64.AppImage")"
jq -n \
--arg version "${VERSION}" \
@@ -46,8 +46,6 @@ jq -n \
--arg base "${RELEASE_BASE_URL}/releases/download/v${VERSION}" \
--arg windows_file "$(basename "${WINDOWS}")" \
--rawfile windows_sig "${WINDOWS}.sig" \
--arg linux_file "$(basename "${LINUX}")" \
--rawfile linux_sig "${LINUX}.sig" \
'{
version: $version,
pub_date: $pub_date,
@@ -55,10 +53,6 @@ jq -n \
"windows-x86_64": {
signature: ($windows_sig | gsub("\\s"; "")),
url: "\($base)/\($windows_file | @uri)"
},
"linux-x86_64": {
signature: ($linux_sig | gsub("\\s"; "")),
url: "\($base)/\($linux_file | @uri)"
}
}
}' >"${DIR}/latest.json"
+3 -7
View File
@@ -6,13 +6,9 @@
RELEASE_BASE_URL="https://gitea.euvino.eu/public/call-recorder"
# 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).
# Where the app looks for latest.json: committed to the root of master.
# Gitea 1.27.3 does not redirect releases/latest/download/<file> to a
# release's assets, so that URL is not offered here. See RELEASING.md.
UPDATE_JSON_URLS=(
"${RELEASE_BASE_URL}/releases/latest/download/latest.json"
"${RELEASE_BASE_URL}/raw/branch/master/latest.json"
)