From 3723888b0c5f9fc41cfb30c1563694d3cfe5a8bf Mon Sep 17 00:00:00 2001 From: MacRimi Date: Wed, 20 May 2026 20:46:58 +0200 Subject: [PATCH] Update Install --- install_proxmenux.sh | 10 +++++++--- install_proxmenux_beta.sh | 7 ++++++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/install_proxmenux.sh b/install_proxmenux.sh index 14c58187..097b6d91 100755 --- a/install_proxmenux.sh +++ b/install_proxmenux.sh @@ -577,9 +577,13 @@ detect_latest_appimage() { get_appimage_version() { local appimage_path="$1" local filename=$(basename "$appimage_path") - - local version=$(echo "$filename" | grep -oP 'ProxMenux-\K[0-9]+\.[0-9]+\.[0-9]+') - + + # Match any dotted number sequence + optional pre-release suffix + # (e.g. "-beta"). The previous `[0-9]+\.[0-9]+\.[0-9]+` was hardcoded + # to three segments and dropped both the fourth segment AND the + # `-beta` suffix on a name like `ProxMenux-1.2.1.2-beta.AppImage`. + local version=$(echo "$filename" | grep -oP 'ProxMenux-\K[0-9]+(?:\.[0-9]+)+(?:-[A-Za-z0-9]+)?') + echo "$version" } diff --git a/install_proxmenux_beta.sh b/install_proxmenux_beta.sh index 830c5353..4712afd8 100644 --- a/install_proxmenux_beta.sh +++ b/install_proxmenux_beta.sh @@ -321,7 +321,12 @@ detect_latest_appimage() { get_appimage_version() { local filename filename=$(basename "$1") - echo "$filename" | grep -oP 'ProxMenux-\K[0-9]+\.[0-9]+\.[0-9]+' + # Match any dotted number sequence + optional pre-release suffix + # (e.g. "-beta"). The previous `[0-9]+\.[0-9]+\.[0-9]+` was hardcoded + # to three segments and dropped both the fourth segment AND the + # `-beta` suffix on a name like `ProxMenux-1.2.1.2-beta.AppImage`, + # producing the misleading "Monitor beta v1.2.1 installed" line. + echo "$filename" | grep -oP 'ProxMenux-\K[0-9]+(?:\.[0-9]+)+(?:-[A-Za-z0-9]+)?' } # ── AppImage runtime extraction ────────────────────────────