Skip to content

Commit 58b09f1

Browse files
authored
Update download URL for claude-code releases
Signed-off-by: twsl <45483159+twsl@users.noreply.github.com>
1 parent f587423 commit 58b09f1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/claude-code/bootstrap.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if [[ -n "$TARGET" ]] && [[ ! "$TARGET" =~ ^(stable|latest|[0-9]+\.[0-9]+\.[0-9]
1111
exit 1
1212
fi
1313

14-
GCS_BUCKET="https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases"
14+
DOWNLOAD_BASE_URL="https://downloads.claude.ai/claude-code-releases"
1515
DOWNLOAD_DIR="$HOME/.claude/downloads"
1616

1717
# Check for required dependencies
@@ -105,10 +105,10 @@ fi
105105
mkdir -p "$DOWNLOAD_DIR"
106106

107107
# Always download latest version (which has the most up-to-date installer)
108-
version=$(download_file "$GCS_BUCKET/latest")
108+
version=$(download_file "$DOWNLOAD_BASE_URL/latest")
109109

110110
# Download manifest and extract checksum
111-
manifest_json=$(download_file "$GCS_BUCKET/$version/manifest.json")
111+
manifest_json=$(download_file "$DOWNLOAD_BASE_URL/$version/manifest.json")
112112

113113
# Use jq if available, otherwise fall back to pure bash parsing
114114
if [ "$HAS_JQ" = true ]; then
@@ -125,7 +125,7 @@ fi
125125

126126
# Download and verify
127127
binary_path="$DOWNLOAD_DIR/claude-$version-$platform"
128-
if ! download_file "$GCS_BUCKET/$version/$platform/claude" "$binary_path"; then
128+
if ! download_file "$DOWNLOAD_BASE_URL/$version/$platform/claude" "$binary_path"; then
129129
echo "Download failed" >&2
130130
rm -f "$binary_path"
131131
exit 1

0 commit comments

Comments
 (0)