Fix Tailscale download URLs: Use dynamic version detection
- Add GitHub API integration to get latest Tailscale version - Fix broken download URLs by using correct versioned filenames - Add fallback version (1.86.2) if API call fails - Update both English and Korean PowerShell scripts - Resolves download errors in installation process 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -111,12 +111,24 @@ function Install-Tailscale {
|
||||
|
||||
Write-Info "Installing Tailscale for Windows..."
|
||||
|
||||
# Get latest Tailscale version
|
||||
try {
|
||||
Write-Status "Getting latest Tailscale version..."
|
||||
$latestRelease = Invoke-RestMethod -Uri "https://api.github.com/repos/tailscale/tailscale/releases/latest" -UseBasicParsing
|
||||
$version = $latestRelease.tag_name.TrimStart('v')
|
||||
Write-Info "Latest version: $version"
|
||||
}
|
||||
catch {
|
||||
Write-Warning "Failed to get latest version, using fallback"
|
||||
$version = "1.86.2"
|
||||
}
|
||||
|
||||
# Temporary download path
|
||||
$tempPath = "$env:TEMP\tailscale-setup.exe"
|
||||
$downloadUrl = "https://pkgs.tailscale.com/stable/tailscale-setup.exe"
|
||||
$tempPath = "$env:TEMP\tailscale-setup-$version.exe"
|
||||
$downloadUrl = "https://pkgs.tailscale.com/stable/tailscale-setup-$version.exe"
|
||||
|
||||
try {
|
||||
Write-Status "Downloading Tailscale..."
|
||||
Write-Status "Downloading Tailscale from: $downloadUrl"
|
||||
Invoke-WebRequest -Uri $downloadUrl -OutFile $tempPath -UseBasicParsing
|
||||
|
||||
Write-Status "Installing Tailscale... (please wait)"
|
||||
|
||||
Reference in New Issue
Block a user