chore: desktop Proxy God shortcut + script, README one-click section

Made-with: Cursor
This commit is contained in:
Dr Jones
2026-04-15 19:52:18 -07:00
parent 086a2499c0
commit b32e241670
3 changed files with 46 additions and 2 deletions

View File

@@ -0,0 +1,23 @@
# Creates "Proxy God.lnk" on the current user's Desktop. Run after build.
$ErrorActionPreference = "Stop"
$root = Split-Path -Parent (Split-Path -Parent $MyInvocation.MyCommand.Path)
$desk = [Environment]::GetFolderPath("Desktop")
$exeDesk = Join-Path $desk "ProxyChainManager.exe"
$exeDist = Join-Path $root "dist\ProxyChainManager.exe"
if (Test-Path $exeDesk) {
$target = (Resolve-Path $exeDesk).Path
} elseif (Test-Path $exeDist) {
$target = (Resolve-Path $exeDist).Path
} else {
Write-Warning "ProxyChainManager.exe not found on Desktop or in dist\"
exit 1
}
$W = New-Object -ComObject WScript.Shell
$lnk = Join-Path $desk "Proxy God.lnk"
$S = $W.CreateShortcut($lnk)
$S.TargetPath = $target
$S.WorkingDirectory = $root
$S.Description = "Proxy God - proxy chain manager"
$S.IconLocation = "$target,0"
$S.Save()
Write-Host "OK: $lnk -> $target"