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

@@ -64,6 +64,16 @@ python -m unittest discover -s tests -v
Hits config sanitization, fetcher smoke, validator timeouts, and a live `get_direct_ip` check (skips if youre offline).
### Shortcut missing?
After a successful build, if **`Proxy God.lnk`** isnt on the Desktop, run:
```cmd
powershell -ExecutionPolicy Bypass -File scripts\create_desktop_shortcut.ps1
```
(from the repo folder)
---
## Build the binary
@@ -72,7 +82,17 @@ Hits config sanitization, fetcher smoke, validator timeouts, and a live `get_dir
build_exe.bat
```
**Output:** `dist\ProxyChainManager.exe` — script also tries to drop a copy on your **Desktop**.
**What you get (no extra steps):**
| Where | What |
|--------|------|
| `dist\ProxyChainManager.exe` | The built app |
| **Desktop → `Proxy God.lnk`** | **Doubleclick this** — shortcut to the exe (created every build) |
| **Desktop → `ProxyChainManager.exe`** | Same app, direct file |
First time: accept **UAC** if you want the firewall kill-switch. Then in the window press **▶ Start**.
You do **not** need Python on the machine to run the `.exe` — only to **build** it.
---

View File

@@ -14,8 +14,9 @@ python -m PyInstaller --noconfirm --clean ^
run.py
copy /Y "dist\ProxyChainManager.exe" "%USERPROFILE%\Desktop\ProxyChainManager.exe" >nul
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\create_desktop_shortcut.ps1"
echo.
echo Built: dist\ProxyChainManager.exe
echo Copied to: %USERPROFILE%\Desktop\ProxyChainManager.exe
echo Desktop: ProxyChainManager.exe + shortcut "Proxy God.lnk"
endlocal

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"