From e89a0f5fcb9b91d47f095bd6e77d376fa4fb525a Mon Sep 17 00:00:00 2001 From: Finessse Date: Sun, 28 Dec 2025 07:12:43 +0700 Subject: [PATCH] chore(scripts): add UI state initialization script PowerShell script to create initial ui-state.json with default settings in %LOCALAPPDATA%\ProxyPilot. --- setup-state.ps1 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 setup-state.ps1 diff --git a/setup-state.ps1 b/setup-state.ps1 new file mode 100644 index 00000000..86480c29 --- /dev/null +++ b/setup-state.ps1 @@ -0,0 +1,14 @@ +$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