fix(install): point download/version URLs to new Gitea domain (eightarms.net)

This commit is contained in:
2026-07-30 10:06:39 +08:00
parent bb4bd2d412
commit 8c36343570
+9 -9
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Public release repository: # Public release repository:
# http://octopus.51zxtx.com:3000/fourbroad/octopus-release # https://eightarms.net/fourbroad/octopus-release
set -euo pipefail set -euo pipefail
APP=octopus APP=octopus
@@ -22,8 +22,8 @@ Options:
--no-modify-path Don't modify shell config files (.zshrc, .bashrc, etc.) --no-modify-path Don't modify shell config files (.zshrc, .bashrc, etc.)
Examples: Examples:
curl -fsSL https://octopus.51zxtx.com/install | bash curl -fsSL https://eightarms.net/fourbroad/octopus-release/raw/branch/main/install | bash
curl -fsSL https://octopus.51zxtx.com/install | bash -s -- --version 1.0.180 curl -fsSL https://eightarms.net/fourbroad/octopus-release/raw/branch/main/install | bash -s -- --version 1.0.180
./install --binary /path/to/octopus ./install --binary /path/to/octopus
EOF EOF
} }
@@ -183,24 +183,24 @@ else
fi fi
if [ -z "$requested_version" ]; then if [ -z "$requested_version" ]; then
specific_version=$(curl -s "${GITEA_API_URL:-http://octopus.51zxtx.com:3000/api/v1}/repos/fourbroad/octopus-release/releases?limit=1" | sed -n 's/.*"tag_name": *"v\([^"]*\)".*/\1/p') specific_version=$(curl -s "${GITEA_API_URL:-https://eightarms.net/api/v1}/repos/fourbroad/octopus-release/releases?limit=1" | sed -n 's/.*"tag_name": *"v\([^"]*\)".*/\1/p')
if [[ $? -ne 0 || -z "$specific_version" ]]; then if [[ $? -ne 0 || -z "$specific_version" ]]; then
echo -e "${RED}Failed to fetch version information${NC}" echo -e "${RED}Failed to fetch version information${NC}"
exit 1 exit 1
fi fi
url="${OCTOPUS_DOWNLOAD_BASE:-http://octopus.51zxtx.com:3000}/fourbroad/octopus-release/releases/download/v${specific_version}/$filename" url="${OCTOPUS_DOWNLOAD_BASE:-https://eightarms.net}/fourbroad/octopus-release/releases/download/v${specific_version}/$filename"
else else
# Strip leading 'v' if present # Strip leading 'v' if present
requested_version="${requested_version#v}" requested_version="${requested_version#v}"
url="${OCTOPUS_DOWNLOAD_BASE:-http://octopus.51zxtx.com:3000}/fourbroad/octopus-release/releases/download/v${requested_version}/$filename" url="${OCTOPUS_DOWNLOAD_BASE:-https://eightarms.net}/fourbroad/octopus-release/releases/download/v${requested_version}/$filename"
specific_version=$requested_version specific_version=$requested_version
# Verify the release exists before downloading # Verify the release exists before downloading
http_status=$(curl -sI -o /dev/null -w "%{http_code}" "${GITEA_URL:-http://octopus.51zxtx.com:3000}/fourbroad/octopus-release/releases/tag/v${requested_version}") http_status=$(curl -sI -o /dev/null -w "%{http_code}" "${GITEA_URL:-https://eightarms.net}/fourbroad/octopus-release/releases/tag/v${requested_version}")
if [ "$http_status" = "404" ]; then if [ "$http_status" = "404" ]; then
echo -e "${RED}Error: Release v${requested_version} not found${NC}" echo -e "${RED}Error: Release v${requested_version} not found${NC}"
echo -e "${MUTED}Available releases: ${GITEA_URL:-http://octopus.51zxtx.com:3000}/fourbroad/octopus-release/releases${NC}" echo -e "${MUTED}Available releases: ${GITEA_URL:-https://eightarms.net}/fourbroad/octopus-release/releases${NC}"
exit 1 exit 1
fi fi
fi fi
@@ -456,6 +456,6 @@ echo -e ""
echo -e "cd <project> ${MUTED}# Open directory${NC}" echo -e "cd <project> ${MUTED}# Open directory${NC}"
echo -e "octopus ${MUTED}# Run command${NC}" echo -e "octopus ${MUTED}# Run command${NC}"
echo -e "" echo -e ""
echo -e "${MUTED}For more information visit ${NC}https://octopus.51zxtx.com/docs" echo -e "${MUTED}For more information visit ${NC}https://eightarms.net/fourbroad/octopus-release"
echo -e "" echo -e ""
echo -e "" echo -e ""