Skip to content

Commit 0f48b9f

Browse files
committed
chore(install): fix filename format and normalize OS/ARCH handling
1 parent 759b4a1 commit 0f48b9f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install.sh

100644100755
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ BINARY_NAME="ai-docs"
77
INSTALL_DIR="/usr/local/bin"
88

99
# Detect OS and ARCH
10-
OS="$(uname | tr '[:upper:]' '[:lower:]')"
10+
OS="$(uname)"
1111
ARCH="$(uname -m)"
1212
case "$ARCH" in
13-
x86_64) ARCH="amd64" ;;
13+
x86_64) ARCH="x86_64" ;;
1414
arm64|aarch64) ARCH="arm64" ;;
1515
*) echo "Unsupported architecture: $ARCH"; exit 1 ;;
1616
esac
@@ -20,7 +20,7 @@ TAG=$(curl -s "https://api.github.com/repos/$REPO/releases/latest" | grep '"tag_
2020
TAG_NO_V=$(echo "$TAG" | sed 's/^v//')
2121

2222
# Build download URL
23-
FILENAME="${BINARY_NAME}_${TAG_NO_V}_${OS}_${ARCH}.tar.gz"
23+
FILENAME="${BINARY_NAME}_${OS}_${ARCH}.tar.gz"
2424
URL="https://github.com/${REPO}/releases/download/${TAG}/${FILENAME}"
2525

2626
# Download and extract

0 commit comments

Comments
 (0)