Skip to content
This repository was archived by the owner on May 17, 2026. It is now read-only.

Commit 825bc2f

Browse files
authored
Merge branch 'RightNow-AI:main' into main
2 parents 7da16c0 + 0796377 commit 825bc2f

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

scripts/install.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,23 @@ install() {
4646
echo " =================="
4747
echo ""
4848

49-
# Get latest version
49+
# Get latest version with binary assets
5050
if [ -n "${OPENFANG_VERSION:-}" ]; then
5151
VERSION="$OPENFANG_VERSION"
5252
echo " Using specified version: $VERSION"
5353
else
5454
echo " Fetching latest release..."
55-
VERSION=$(curl -fsSL "https://api.github.com/repos/$REPO/releases/latest" | grep '"tag_name"' | sed 's/.*"tag_name": *"//' | sed 's/".*//')
55+
# Find the most recent release that has binary assets (skip empty tag-only releases)
56+
VERSION=$(curl -fsSL "https://api.github.com/repos/$REPO/releases?per_page=10" | \
57+
grep -E '"tag_name"|"assets":\[' | \
58+
paste - - | \
59+
grep -v '"assets":\[\]' | \
60+
head -1 | \
61+
sed 's/.*"tag_name": *"//' | sed 's/".*//')
62+
# Fallback to /releases/latest if the above fails
63+
if [ -z "$VERSION" ]; then
64+
VERSION=$(curl -fsSL "https://api.github.com/repos/$REPO/releases/latest" | grep '"tag_name"' | sed 's/.*"tag_name": *"//' | sed 's/".*//')
65+
fi
5666
fi
5767

5868
if [ -z "$VERSION" ]; then

0 commit comments

Comments
 (0)