-
-
Notifications
You must be signed in to change notification settings - Fork 157
Expand file tree
/
Copy pathbootstrap.ps1
More file actions
61 lines (49 loc) · 1.41 KB
/
bootstrap.ps1
File metadata and controls
61 lines (49 loc) · 1.41 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
# Islands Dark Theme Bootstrap Installer for Windows
# One-liner: irm https://raw.githubusercontent.com/bwya77/vscode-dark-islands/main/bootstrap.ps1 | iex
param()
$ErrorActionPreference = "Stop"
echo "🏝️ Islands Dark Theme Bootstrap Installer"
echo "=========================================="
echo ""
$RepoUrl = "https://github.com/bwya77/vscode-dark-islands.git"
$Branch = "main"
$InstallDir = "$env:TEMP\islands-dark-temp"
echo "📥 Step 1: Downloading Islands Dark..."
echo " Repository: $RepoUrl"
# Remove old temp directory if exists
if (Test-Path $InstallDir) {
Remove-Item -Recurse -Force $InstallDir
}
# Clone repository
try {
git clone $RepoUrl $InstallDir --quiet --branch $Branch
} catch {
echo "❌ Failed to download Islands Dark"
echo " Make sure Git is installed: https://git-scm.com/download/win"
exit 1
}
echo "✓ Downloaded successfully"
echo ""
echo "🚀 Step 2: Running installer..."
echo ""
# Run installer
cd $InstallDir
try {
.\install.ps1
} catch {
echo "❌ Installation failed"
echo $_.Exception.Message
exit 1
}
# Cleanup
echo ""
echo "🧹 Step 3: Cleaning up..."
$remove = Read-Host " Remove temporary files? (y/n)"
if ($remove -eq 'y' -or $remove -eq 'Y') {
Remove-Item -Recurse -Force $InstallDir
echo "✓ Temporary files removed"
} else {
echo " Files kept at: $InstallDir"
}
echo ""
echo "🎉 Done! Enjoy your Islands Dark theme!"