-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·52 lines (41 loc) · 1.28 KB
/
install.sh
File metadata and controls
executable file
·52 lines (41 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
# Git Projects Welcome - Extension Installation Script
set -e
echo "📦 Git Projects Welcome - Extension Installer"
echo "================================================"
# Check if VS Code is installed
if ! command -v code &> /dev/null; then
echo "❌ Error: VS Code is not installed or not in PATH"
echo "Please install VS Code from https://code.visualstudio.com"
exit 1
fi
# Install dependencies
echo ""
echo "📥 Installing dependencies..."
npm install
# Compile TypeScript
echo ""
echo "🔨 Compiling TypeScript..."
npm run compile
# Package the extension (using npx to avoid global permission issues)
echo ""
echo "📦 Packaging extension..."
npx @vscode/vsce package
# Install the extension
echo ""
echo "🚀 Installing extension in VS Code..."
VSIX_FILE=$(ls -t git-projects-welcome-*.vsix 2>/dev/null | head -1)
if [ -z "$VSIX_FILE" ]; then
echo "❌ Error: VSIX file not found"
exit 1
fi
code --install-extension "$VSIX_FILE"
echo ""
echo "✅ Installation complete!"
echo ""
echo "📝 Next steps:"
echo "1. Open VS Code settings (Ctrl+,)"
echo "2. Search for 'gitProjectsWelcome.repositoryDirectories'"
echo "3. Add your project directories to the array"
echo "4. Click the 'projects' button in the status bar to view your repositories"
echo ""