-
-
Notifications
You must be signed in to change notification settings - Fork 157
Expand file tree
/
Copy pathbootstrap.sh
More file actions
67 lines (53 loc) · 1.55 KB
/
bootstrap.sh
File metadata and controls
67 lines (53 loc) · 1.55 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
set -e
# Islands Dark Theme Bootstrap Installer
# One-liner: curl -fsSL https://raw.githubusercontent.com/bwya77/vscode-dark-islands/main/bootstrap.sh | bash
echo "🏝️ Islands Dark Theme Bootstrap Installer"
echo "=========================================="
echo ""
REPO_URL="https://github.com/bwya77/vscode-dark-islands.git"
INSTALL_DIR="$HOME/.islands-dark-temp"
# Detect OS
if [[ "$OSTYPE" == "darwin"* ]]; then
OS="macOS"
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
OS="Linux"
else
OS="Linux"
fi
echo "📥 Step 1: Downloading Islands Dark..."
echo " Repository: $REPO_URL"
# Remove old temp directory if exists
rm -rf "$INSTALL_DIR"
# Clone repository
BRANCH="main"
if ! git clone "$REPO_URL" "$INSTALL_DIR" --quiet --branch "$BRANCH"; then
echo "❌ Failed to download Islands Dark"
exit 1
fi
echo "✓ Downloaded successfully!"
echo ""
echo "🚀 Step 2: Running installer..."
echo ""
# Run appropriate installer
if [[ "$OS" == "macOS" ]] || [[ "$OS" == "Linux" ]]; then
cd "$INSTALL_DIR"
bash install.sh
else
echo "⚠️ Automatic installation not supported for this OS"
echo " Please manually run: cd $INSTALL_DIR && ./install.sh"
exit 1
fi
# Cleanup (optional - keeps the temp directory)
echo ""
echo "🧹 Step 3: Cleaning up..."
read -p " Remove temporary files? (y/n) " -n 1 -r
echo ""
if [[ $REPLY =~ ^[Yy]$ ]]; then
rm -rf "$INSTALL_DIR"
echo "✓ Temporary files removed"
else
echo " Files kept at: $INSTALL_DIR"
fi
echo ""
echo -e "🎉 Done! Enjoy your Islands Dark theme!"