-
-
Notifications
You must be signed in to change notification settings - Fork 273
Expand file tree
/
Copy pathbootstrap-antigravity.sh
More file actions
74 lines (60 loc) · 1.88 KB
/
Copy pathbootstrap-antigravity.sh
File metadata and controls
74 lines (60 loc) · 1.88 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
68
69
70
71
72
73
74
#!/bin/bash
set -e
# Islands Dark Theme Bootstrap Installer for Antigravity IDE
# One-liner: curl -fsSL https://raw.githubusercontent.com/bwya77/vscode-dark-islands/main/bootstrap-antigravity.sh | bash
echo "🏝️ Islands Dark Theme Bootstrap Installer (Antigravity IDE)"
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="Unknown"
fi
if [[ "$OS" == "Unknown" ]]; then
echo "⚠️ Automatic installation not supported for this OS"
echo " Detected OSTYPE: $OSTYPE"
exit 1
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 Antigravity IDE installer..."
echo ""
if [[ "$OS" == "macOS" ]] || [[ "$OS" == "Linux" ]]; then
cd "$INSTALL_DIR"
bash install-antigravity.sh
else
echo "⚠️ Automatic installation not supported for this OS"
echo " Please manually run: cd $INSTALL_DIR && ./install-antigravity.sh"
exit 1
fi
echo ""
echo "🧹 Step 3: Cleaning up..."
if [ -t 0 ]; then
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
else
echo " Non-interactive shell detected; keeping temporary files at: $INSTALL_DIR"
fi
echo ""
echo -e "🎉 Done! Enjoy your Islands Dark theme on Antigravity IDE!"