Files
ProxyPilot/setup-state.ps1
Finessse e89a0f5fcb chore(scripts): add UI state initialization script
PowerShell script to create initial ui-state.json with default
settings in %LOCALAPPDATA%\ProxyPilot.
2025-12-28 07:12:43 +07:00

15 lines
378 B
PowerShell

$stateDir = Join-Path $Env:LOCALAPPDATA "ProxyPilot"
$statePath = Join-Path $stateDir "ui-state.json"
if (-not (Test-Path $stateDir)) {
New-Item -ItemType Directory -Path $stateDir -Force | Out-Null
}
$state = @{
auto_start_proxy = $true
} | ConvertTo-Json
Set-Content -Path $statePath -Value $state
Write-Host "Created state file: $statePath"
Get-Content $statePath