-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.ps1
More file actions
31 lines (27 loc) · 950 Bytes
/
Copy pathinstall.ps1
File metadata and controls
31 lines (27 loc) · 950 Bytes
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
# Punch Installer for Windows
# Run with: .\install.ps1
Write-Host ""
Write-Host "👊 Installing Punch..." -ForegroundColor Cyan
Write-Host ""
# Check Rust
if (-not (Get-Command cargo -ErrorAction SilentlyContinue)) {
Write-Host "Rust not found. Please install it from https://rustup.rs" -ForegroundColor Yellow
Write-Host "Then re-run this script."
Start-Process "https://rustup.rs"
exit 1
}
# Build and install CLI
Write-Host "Building punch CLI (this takes ~2 minutes first time)..."
Set-Location core
cargo install --path . --quiet
Set-Location ..
Write-Host ""
Write-Host "✅ Punch installed!" -ForegroundColor Green
Write-Host ""
Write-Host "Try it:"
Write-Host " punch generate -> get a code"
Write-Host " punch connect <code> -> connect to a peer"
Write-Host ""
Write-Host "Note: Punch works best on WiFi." -ForegroundColor Yellow
Write-Host "Mobile/corporate networks may fall back to relay."
Write-Host ""