From d2f2cd13a46863debc335042e3b5455a626ee6e7 Mon Sep 17 00:00:00 2001 From: Weston Blieden Date: Fri, 21 Aug 2026 15:48:39 +0200 Subject: [PATCH] Keep the UI update check in sync with the packaged version --- ci/apply-version.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ci/apply-version.sh b/ci/apply-version.sh index d73749a..e9fa7c8 100755 --- a/ci/apply-version.sh +++ b/ci/apply-version.sh @@ -70,6 +70,15 @@ if [ -n "$module" ] && [ -n "$UPSTREAM" ] && [ -f "$gomod" ]; then echo "go module ${module}@${UPSTREAM}" fi +# Web UIs compare the installed version against the latest GitHub release. The +# literal is marked so it cannot drift out of sync with the manifest. +while IFS= read -r page; do + [ -n "$page" ] || continue + sed -i.bak -E "s|'[0-9]+\.[0-9]+\.[0-9]+'( /\* acap:installed-version \*/)|'${VERSION}'\1|g" "$page" + rm -f "$page.bak" + echo "installed-version $VERSION -> $page" +done < <(grep -rl 'acap:installed-version' --include='*.html' . 2>/dev/null || true) + if [ -f CHANGELOG.md ] && ! grep -qE "^## \[?${VERSION}\]?" CHANGELOG.md; then first_heading=$(grep -n -m1 '^## ' CHANGELOG.md | cut -d: -f1 || true) tmp=$(mktemp)