mirror of
https://github.com/Finesssee/ProxyPilot.git
synced 2026-11-18 18:04:20 +00:00
chore(scripts): add UI state initialization script
PowerShell script to create initial ui-state.json with default settings in %LOCALAPPDATA%\ProxyPilot.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user