mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-21 21:01:06 -05:00
Publish Roo Cline to AWS CodeArtifact; script to download and install latest Roo Cline Extension
This commit is contained in:
15
scripts/codeartifact-login.sh
Normal file
15
scripts/codeartifact-login.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
AWS_VERSION=$(aws --version 2>&1 | cut -d/ -f2 | cut -d. -f1)
|
||||
echo "aws-cli/$AWS_VERSION"
|
||||
|
||||
if [ "$AWS_VERSION" -lt 2 ]; then
|
||||
echo "Skipping .npmrc generation because AWS CLI version is less than 2"
|
||||
else
|
||||
echo "Generating .npmrc"
|
||||
REPO_ENDPOINT=$(aws codeartifact get-repository-endpoint --domain roo --repository roo-dev --format npm | jq -r '.repositoryEndpoint')
|
||||
echo "registry=$REPO_ENDPOINT" > .npmrc
|
||||
|
||||
CODEARTIFACT_AUTH_TOKEN=$(aws codeartifact get-authorization-token --domain roo --query authorizationToken --output text)
|
||||
|
||||
REPO_PATH=$(echo $REPO_ENDPOINT | sed 's/https://g')
|
||||
echo "$REPO_PATH:_authToken=$CODEARTIFACT_AUTH_TOKEN" >> .npmrc
|
||||
fi
|
||||
20
scripts/install-cline-latest.sh
Executable file
20
scripts/install-cline-latest.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Install roo-cline
|
||||
echo "Installing roo-cline..."
|
||||
npm install roo-cline
|
||||
|
||||
# Get version of installed roo-cline
|
||||
VERSION=$(npm list roo-cline | grep roo-cline@ | cut -d'@' -f2 | tail -n1)
|
||||
echo "Installed version: $VERSION"
|
||||
|
||||
# Install extension in Cursor
|
||||
echo "Installing Cursor extension..."
|
||||
echo $VERSION
|
||||
cursor --install-extension "node_modules/roo-cline/bin/roo-cline-$VERSION.vsix"
|
||||
|
||||
# Uninstall roo-cline
|
||||
echo "Cleaning up..."
|
||||
npm uninstall roo-cline
|
||||
|
||||
echo "Done!"
|
||||
Reference in New Issue
Block a user