Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions bucket/cloudflare-warp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"version": "2025.9.558.0",
"homepage": "https://1.1.1.1",
"description": "The free app that makes your Internet faster",
"license": "Freeware",
"notes": "Fix service by running: $dir\\service.ps1",
"architecture": {
"64bit": {
"url": "https://downloads.cloudflareclient.com/v1/download/windows/version/2025.9.558.0#/setup.msi",
"hash": "ac519bcc2937d93d67d31497d72a6262801d30cea98894a9584c0b92d0635ba2"
}
},
"extract_dir": "Cloudflare\\Cloudflare WARP",
"post_install": "Copy-Item \"$bucketsdir\\$bucket\\scripts\\$app\\service.ps1\" \"$dir\"",
"shortcuts": [
[
"Cloudflare WARP.exe",
"Cloudflare WARP"
]
],
"checkver": {
"url": "https://downloads.cloudflareclient.com/v1/update/sparkle/windows/ga",
"regex": "Version ([\\d.]+)"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://downloads.cloudflareclient.com/v1/download/windows/version/$version#/setup.msi"
}
}
}
}
52 changes: 52 additions & 0 deletions scripts/cloudflare-warp/service.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Check for admin rights
$isAdmin = ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)

if (-not $isAdmin) {
Write-Error "Cloudflare WARP Service setup requires administrator rights."
Write-Host "Please run this script as administrator." -ForegroundColor Yellow
exit 1
}

# Get current directory
$dir = $PSScriptRoot

Write-Host "Setting up Cloudflare WARP Service..." -ForegroundColor Cyan
Write-Host "Directory: $dir"

# Create the service
$servicePath = "$dir\warp-svc.exe"
if (-not (Test-Path $servicePath)) {
Write-Error "warp-svc.exe not found at: $servicePath"
exit 1
}

# Remove existing service if it exists
$existingService = Get-Service -Name "Cloudflare WARP" -ErrorAction SilentlyContinue
if ($existingService) {
Write-Host "Removing existing Cloudflare WARP Service..."
Stop-Service -Name "Cloudflare WARP" -Force -ErrorAction SilentlyContinue
sc.exe delete "Cloudflare WARP" | Out-Null
Start-Sleep -Seconds 2
}

# Create new service
Write-Host "Creating Cloudflare WARP Service..."
try {
New-Service -Name "Cloudflare WARP" -BinaryPathName "$servicePath" -DependsOn 'WlanSvc' -DisplayName "Cloudflare WARP" -ErrorAction Stop | Out-Null
Write-Host "Service created successfully." -ForegroundColor Green
} catch {
Write-Error "Failed to create service: $_"
exit 1
}

# Start the service
Write-Host "Starting Cloudflare WARP Service..."
try {
Start-Service -Name "Cloudflare WARP" -ErrorAction Stop
Write-Host "Service started successfully." -ForegroundColor Green
} catch {
Write-Warning "Failed to start service: $_"
Write-Host "You can manually start the service later." -ForegroundColor Yellow
}

Write-Host "`nCloudflare WARP Service setup completed successfully!" -ForegroundColor Green