Skip to content

Commit 821b170

Browse files
committed
fix(install): remove legacy sam references and deduplicate install.sh
1 parent efdc5cb commit 821b170

2 files changed

Lines changed: 4 additions & 119 deletions

File tree

‎install.sh‎

Lines changed: 0 additions & 112 deletions
This file was deleted.

‎install.sh‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
site/static/install.sh

‎site/static/install.sh‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -euo pipefail
33

44
REPO="google/agentmesh"
5-
INSTALL_DIR="/usr/local/bin"
5+
INSTALL_DIR="${AGENTMESH_INSTALL_DIR:-${INSTALL_DIR:-/usr/local/bin}}"
66

77
echo "Installing Agent Mesh from $REPO..."
88

@@ -49,13 +49,9 @@ if ! curl -sfL -o checksums.txt "${CHECKSUMS_URL}"; then
4949
exit 1
5050
fi
5151

52-
# Construct download URL (matches goreleaser name template, with fallback for pre-rename tags)
52+
# Construct download URL (matches goreleaser name template)
5353
TAR_NAME="agentmesh_${OS_NAME}_${ARCH_NAME}.tar.gz"
5454
EXPECTED_SUM=$(awk -v f="${TAR_NAME}" '$2 == f {print $1}' checksums.txt)
55-
if [ -z "${EXPECTED_SUM}" ]; then
56-
TAR_NAME="sam_${OS_NAME}_${ARCH_NAME}.tar.gz"
57-
EXPECTED_SUM=$(awk -v f="${TAR_NAME}" '$2 == f {print $1}' checksums.txt)
58-
fi
5955
if [ -z "${EXPECTED_SUM}" ]; then
6056
echo "Error: archive for ${OS_NAME}_${ARCH_NAME} not found in checksums.txt"
6157
exit 1
@@ -87,7 +83,7 @@ tar -xzf "${TAR_NAME}"
8783

8884
echo "Installing to ${INSTALL_DIR} (may require sudo)..."
8985
INSTALLED_BINS=()
90-
for b in agentmesh-one agentmesh-node agentmesh-control-plane agentmesh-router mcp-client agentmesh-console sam-one sam-node sam-control-plane sam-router sam-console; do
86+
for b in agentmesh-one agentmesh-node agentmesh-control-plane agentmesh-router mcp-client agentmesh-console; do
9187
if [ -f "$b" ]; then
9288
INSTALLED_BINS+=("$b")
9389
fi

0 commit comments

Comments
 (0)