windows: 0.2.0-pre.1: the app in the release, README

- package.sh builds the app (on its own, so its crates' features leave
  the service's build as it was) and puts proxy-suite.exe in the zip;
  THIRD-PARTY.md names GPUI, GPUI Kit and Lucide.
- README: the app, what has been verified of it and how (every page on
  Linux, headless; the Windows build; not drawn on Windows yet), install
  and first run with it, the system proxy, building and trying it.
- Release notes for 0.2.0-pre.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Opus 5.5 committed 2026-10-27 02:17:49 +03:00
1 parent 6ed7a3b1c6
commit adcd734479
5 files changed
+90 -19

No files matched your search

+6 -6
View File
@@ -4932,7 +4932,7 @@ dependencies = [
[[package]] [[package]]
name = "ps-client" name = "ps-client"
version = "0.1.0-pre.2" version = "0.2.0-pre.1"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"ps-core", "ps-core",
@@ -4943,7 +4943,7 @@ dependencies = [
[[package]] [[package]]
name = "ps-core" name = "ps-core"
version = "0.1.0-pre.2" version = "0.2.0-pre.1"
dependencies = [ dependencies = [
"base64 0.22.1", "base64 0.22.1",
"indexmap", "indexmap",
@@ -4957,7 +4957,7 @@ dependencies = [
[[package]] [[package]]
name = "ps-ctl" name = "ps-ctl"
version = "0.1.0-pre.2" version = "0.2.0-pre.1"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"clap", "clap",
@@ -4970,7 +4970,7 @@ dependencies = [
[[package]] [[package]]
name = "ps-gui" name = "ps-gui"
version = "0.1.0-pre.2" version = "0.2.0-pre.1"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"async-channel", "async-channel",
@@ -4985,7 +4985,7 @@ dependencies = [
[[package]] [[package]]
name = "ps-ipc" name = "ps-ipc"
version = "0.1.0-pre.2" version = "0.2.0-pre.1"
dependencies = [ dependencies = [
"serde", "serde",
"serde_json", "serde_json",
@@ -4996,7 +4996,7 @@ dependencies = [
[[package]] [[package]]
name = "ps-service" name = "ps-service"
version = "0.1.0-pre.2" version = "0.2.0-pre.1"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"clap", "clap",
+1 -1
View File
@@ -5,7 +5,7 @@ members = ["crates/ps-core", "crates/ps-ipc", "crates/ps-service", "crates/ps-cl
default-members = ["crates/ps-core", "crates/ps-ipc", "crates/ps-service", "crates/ps-client", "crates/ps-ctl"] default-members = ["crates/ps-core", "crates/ps-ipc", "crates/ps-service", "crates/ps-client", "crates/ps-ctl"]
[workspace.package] [workspace.package]
version = "0.1.0-pre.2" version = "0.2.0-pre.1"
edition = "2024" edition = "2024"
license = "MIT" license = "MIT"
repository = "https://git.faumaray.com/faumaray/proxy-suite-flake" repository = "https://git.faumaray.com/faumaray/proxy-suite-flake"
+37 -8
View File
@@ -2,7 +2,8 @@
A native Windows port of [proxy-suite-flake](https://github.com/FUFSoB/proxy-suite-flake): the A native Windows port of [proxy-suite-flake](https://github.com/FUFSoB/proxy-suite-flake): the
same configuration (upstream's `services.proxy-suite` options, same names and defaults), run same configuration (upstream's `services.proxy-suite` options, same names and defaults), run
by a Windows service instead of NixOS and systemd, controlled with `proxy-ctl` as upstream's is. by a Windows service instead of NixOS and systemd, controlled from its desktop app (window and
tray icon) or with `proxy-ctl`, as upstream's is.
> [!WARNING] > [!WARNING]
> **Pre-release.** Built and tested on Linux and under Wine, **never yet run on real Windows.** > **Pre-release.** Built and tested on Linux and under Wine, **never yet run on real Windows.**
@@ -23,10 +24,13 @@ by a Windows service instead of NixOS and systemd, controlled with `proxy-ctl` a
| zapret2 | `winws2.exe` from bol-van's [zapret-win-bundle](https://github.com/bol-van/zapret-win-bundle) with [nfqws2-keenetic](https://github.com/nfqws/nfqws2-keenetic)'s strategies and nfqws2's own learning of blocked sites | | zapret2 | `winws2.exe` from bol-van's [zapret-win-bundle](https://github.com/bol-van/zapret-win-bundle) with [nfqws2-keenetic](https://github.com/nfqws/nfqws2-keenetic)'s strategies and nfqws2's own learning of blocked sites |
| tg-ws-proxy | Flowseal's [tg-ws-proxy](https://github.com/Flowseal/tg-ws-proxy), the headless proxy, on a bundled Python | | tg-ws-proxy | Flowseal's [tg-ws-proxy](https://github.com/Flowseal/tg-ws-proxy), the headless proxy, on a bundled Python |
| TUN | sing-box's TUN (wintun), `proxy-ctl proxy tun on` — **see the caveats** | | TUN | sing-box's TUN (wintun), `proxy-ctl proxy tun on` — **see the caveats** |
| The app | **Proxy Suite** in the Start Menu, and a tray icon from sign-in: the proxy, DPI bypass and Telegram proxy at a glance and a click; outbounds, subscriptions and the routing mode; zapret's presets and sites; tg-ws-proxy's links; the logs; **every option** in its JSON editor, checked by the service before it takes it; the system proxy |
Not in this release, still to come: the desktop app (GPUI, with a tray icon), AmneziaWG, Not in this release, still to come: AmneziaWG, WARP, Tor, the SSH tunnel, whitelist-bypass,
WARP, Tor, the SSH tunnel, whitelist-bypass, the kill switch, server inbounds, the XRay-only the kill switch, server inbounds, the XRay-only backend, zapret2's extended detection and z2k
backend, zapret2's extended detection and z2k strategies. strategies.
Needs 64-bit Windows 10 (1903 or later) or 11.
## What has been verified ## What has been verified
@@ -39,18 +43,24 @@ backend, zapret2's extended detection and z2k strategies.
| zapret arguments | **every** preset of the release, both game filters, checked by the release's own `winws.exe --dry-run` under Wine (`tools/winws-dry-run.sh`) | | zapret arguments | **every** preset of the release, both game filters, checked by the release's own `winws.exe --dry-run` under Wine (`tools/winws-dry-run.sh`) |
| zapret2 arguments | checked by `winws2.exe --dry-run` under Wine | | zapret2 arguments | checked by `winws2.exe --dry-run` under Wine |
| tg-ws-proxy | runs and listens under Wine | | tg-ws-proxy | runs and listens under Wine |
| The app | every page against the service running on Linux, in a window on a virtual display (Xvfb, Mesa's software Vulkan), clicked and typed into by a script, screenshots looked at, and the service's configuration checked after each change (`tools/gui-shot.sh`) |
| The app's Windows build | built by the release workflow; its shaders by Microsoft's own `fxc.exe` (under Wine) with GPUI's own arguments; under Wine it starts and gets as far as drawing text |
**Not verified: anything that needs real Windows.** Traffic through sing-box on Windows (Wine **Not verified: anything that needs real Windows.** Traffic through sing-box on Windows (Wine
lacks an API it needs), the TUN adapter, WinDivert actually rewriting packets, the Windows lacks an API it needs), the TUN adapter, WinDivert actually rewriting packets, the Windows
service under the Service Control Manager, `install`/`uninstall`, the system PATH change. service under the Service Control Manager, `install`/`uninstall`, the system PATH change, and
**the app drawing on Windows** (Wine's DirectWrite cannot match fonts, so no text is drawn
there), its tray icon, the system proxy and the Start Menu entry.
## Install ## Install
1. Unzip `ProxySuite-<version>-windows-x64.zip` anywhere. 1. Unzip `ProxySuite-<version>-windows-x64.zip` anywhere.
2. Run `install.cmd` (it asks for administrator rights). It copies the program to 2. Run `install.cmd` (it asks for administrator rights). It copies the program to
`C:\Program Files\ProxySuite`, registers the **ProxySuite** service (starts at boot), adds `C:\Program Files\ProxySuite`, registers the **ProxySuite** service (starts at boot), adds
`proxy-ctl` to PATH and starts it. `proxy-ctl` to PATH, starts it, and opens the app; the app starts at every sign-in, in the
3. Open a **new** terminal: `proxy-ctl status`. tray (its shield is green while things work, amber when one failed, grey when all is off).
3. Open **Proxy Suite** from the Start Menu or the tray, or in a **new** terminal:
`proxy-ctl status`.
To upgrade, unzip the new release and run its `install.cmd`. To remove, run `uninstall.cmd`; To upgrade, unzip the new release and run its `install.cmd`. To remove, run `uninstall.cmd`;
the configuration and state stay in `%ProgramData%\ProxySuite` until you delete it. the configuration and state stay in `%ProgramData%\ProxySuite` until you delete it.
@@ -62,6 +72,10 @@ service refuses to start zapret while one runs, and says which.
## First run ## First run
In the app: **Outbounds** → paste a link → **Add**, then switch the local proxy on in the
**Overview** (and, if wanted, *Use it as the system proxy*). **DPI bypass** switches zapret on
and picks its preset; **Telegram proxy** gives the link to open in Telegram. Or from a terminal:
```powershell ```powershell
# A proxy: # A proxy:
proxy-ctl proxy outbounds add "vless://...#My Server" proxy-ctl proxy outbounds add "vless://...#My Server"
@@ -92,6 +106,7 @@ proxy-ctl --help
## The configuration ## The configuration
The app's **Settings** page edits it whole, and checks it with the service before saving.
`proxy-ctl config get` prints it, `proxy-ctl config set <file>` replaces it (checked first; a `proxy-ctl config get` prints it, `proxy-ctl config set <file>` replaces it (checked first; a
bad one changes nothing), `proxy-ctl config validate <file>` only checks. It is upstream's bad one changes nothing), `proxy-ctl config validate <file>` only checks. It is upstream's
option tree as JSON, so [upstream's option reference](../docs/options/index.md) describes it: option tree as JSON, so [upstream's option reference](../docs/options/index.md) describes it:
@@ -99,7 +114,7 @@ option tree as JSON, so [upstream's option reference](../docs/options/index.md)
Options that only mean something on Linux (TProxy, fwmarks, routing tables, packages) are not Options that only mean something on Linux (TProxy, fwmarks, routing tables, packages) are not
there; the Windows-only ones are documented in `crates/ps-core/src/config/`: there; the Windows-only ones are documented in `crates/ps-core/src/config/`:
- `proxy.singBox.testPort`; `proxy.systemProxy` (applied by the desktop app, which is not in this release) - `proxy.singBox.testPort`; `proxy.systemProxy` (applied by the app, for the signed-in user)
- `proxy.routing.rules.*.processNames` / `processPaths` (and `name`, `priority`, `disabled`) - `proxy.routing.rules.*.processNames` / `processPaths` (and `name`, `priority`, `disabled`)
- `perAppRouting.profiles.*`: programs held to an outbound, by name or path - `perAppRouting.profiles.*`: programs held to an outbound, by name or path
- `zapret.tcpTimestamps`, `geodata` as download locations, `tor.controlPort` - `zapret.tcpTimestamps`, `geodata` as download locations, `tor.controlPort`
@@ -126,6 +141,8 @@ and installing components. Secrets (links, passwords) are hidden from callers wi
- zapret2 learns with nfqws2's own detector, not upstream's extended one; z2k's strategies are - zapret2 learns with nfqws2's own detector, not upstream's extended one; z2k's strategies are
not there yet. not there yet.
- The global TUN restarts the local proxy when it is turned on or off (one sing-box does both). - The global TUN restarts the local proxy when it is turned on or off (one sing-box does both).
- The system proxy is set by the app, for the user it runs as, while it runs: quitting the app
puts the user's own setting back.
## Components ## Components
@@ -146,6 +163,18 @@ tools/package.sh # the release zip, in dist/
nix shell nixpkgs#wineWow64Packages.stable -c tools/winws-dry-run.sh dist/ProxySuite-*/components nix shell nixpkgs#wineWow64Packages.stable -c tools/winws-dry-run.sh dist/ProxySuite-*/components
``` ```
The app on Linux, against the service on Linux:
```sh
tools/dev-service.sh # the service, a demo outbound; leave it running
cargo run -p ps-gui -- --socket "$XDG_RUNTIME_DIR/proxy-suite-dev.sock"
tools/gui-shot.sh shot.png 8 -- --socket "$XDG_RUNTIME_DIR/proxy-suite-dev.sock" # headless
```
Its Windows build compiles GPUI's shaders with Microsoft's `fxc.exe` under Wine
(`tools/fxc-wine.sh`, fetched from the Windows SDK and pinned by hash; it stays on the build
machine), through a small patch to GPUI's Windows backend (`vendor/gpui-pre-windows`).
The Windows programs are cross-compiled with `cargo xwin` (MSVC target), with the toolchain The Windows programs are cross-compiled with `cargo xwin` (MSVC target), with the toolchain
in `rust-toolchain.toml`. Design notes: [`DESIGN.md`](DESIGN.md). in `rust-toolchain.toml`. Design notes: [`DESIGN.md`](DESIGN.md).
+29
View File
@@ -0,0 +1,29 @@
The desktop app: Proxy Suite now has a window and a tray icon, besides `proxy-ctl`.
**Not yet run on real Windows.** It was built and tested on Linux, and under Wine where Wine can (it cannot draw the app's text: its DirectWrite does not match fonts). See "What has been verified" in the README, and please report what happens on yours.
### The app
- **Overview:** the local proxy, the DPI bypass and the Telegram proxy, their states and switches; what the service warns of.
- **DPI bypass:** zapret with Flowseal's presets (the preset, game traffic) or zapret2 (learning, IPv6); your own sites to handle or leave alone.
- **Telegram proxy:** on or off, its tg:// links to open in Telegram or copy to a phone, other devices allowed or not, port and fake-TLS domain.
- **Outbounds:** add one from a link; pin, test delays, leave out, remove; the routing mode; subscriptions.
- **Logs:** every service's, live.
- **Settings:** every option, as JSON, checked by the service before it is saved.
- **Components:** what is installed, at which version.
- **Tray:** a shield, green while things work, amber when one failed, grey when all is off; its menu switches the proxy, the DPI bypass and the Telegram proxy.
- **System proxy:** the app can point Windows' proxy setting (browsers, most programs) at the local proxy while it runs, and puts yours back after.
`install.cmd` puts it in the Start Menu and starts it at every sign-in, in the tray.
### Also
- The service names zapret's presets and gives tg-ws-proxy's links (`proxy-ctl zapret presets`, `proxy-ctl tg link`).
- Built and published by Gitea Actions.
### Install
Download `ProxySuite-0.2.0-pre.1-windows-x64.zip`; its SHA-256 is in the `.sha256` file next to it. Unzip, run `install.cmd` as administrator, then open **Proxy Suite** from the Start Menu. Needs 64-bit Windows 10 (1903 or later) or 11.
### Not yet
AmneziaWG, WARP, Tor, the SSH tunnel, whitelist-bypass, the kill switch, server inbounds, the XRay-only backend, zapret2's extended detection and the z2k strategies.
### Note
Unlike upstream, the signed-in user may change every setting by default (`userControl`), except the ones that could run programs or read files as SYSTEM: those always need an administrator. On a shared computer, restrict `userControl.scopes`.
+17 -4
View File
@@ -1,8 +1,10 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# The release: ProxySuite-<version>-windows-x64.zip in dist/, with the programs, every # The release: ProxySuite-<version>-windows-x64.zip in dist/, with the programs (the service,
# component (fetched and verified), the install scripts, the README and the licenses. # proxy-ctl, the app), every component (fetched and verified), the install scripts, the README
# and the licenses.
# #
# nix develop --command tools/package.sh (needs curl, git, unzip, zip, pip) # nix develop --command tools/package.sh (needs curl, git, unzip, zip, pip; nix for
# the app's shader compiler, tools/fxc-wine.sh)
set -euo pipefail set -euo pipefail
cd "$(dirname "$0")/.." cd "$(dirname "$0")/.."
VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -1) VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -1)
@@ -20,7 +22,12 @@ rm -rf "$DIST"/components/*.old "$DIST"/components/*.staging
echo "== programs" echo "== programs"
cargo xwin build -q --release -p ps-service -p ps-ctl --target x86_64-pc-windows-msvc cargo xwin build -q --release -p ps-service -p ps-ctl --target x86_64-pc-windows-msvc
cp target/x86_64-pc-windows-msvc/release/proxy-suite-service.exe target/x86_64-pc-windows-msvc/release/proxy-ctl.exe "$DIST/" # The app on its own, so its crates' features do not change the service's (Cargo unifies them
# within one build). Its shaders are compiled by Microsoft's fxc.exe under Wine.
GPUI_FXC_PATH="$PWD/tools/fxc-wine.sh" cargo xwin build -q --release -p ps-gui --target x86_64-pc-windows-msvc
for exe in proxy-suite-service proxy-ctl proxy-suite; do
cp "target/x86_64-pc-windows-msvc/release/$exe.exe" "$DIST/"
done
cp ../LICENSE README.md "$DIST/" cp ../LICENSE README.md "$DIST/"
cp tools/install.cmd tools/uninstall.cmd "$DIST/" cp tools/install.cmd tools/uninstall.cmd "$DIST/"
@@ -44,6 +51,12 @@ echo "== THIRD-PARTY.md"
echo "- **zapret2** (winws2.exe, its Lua) and **nfqws2-keenetic** (its strategies, lists, blobs): MIT, https://github.com/bol-van/zapret2, https://github.com/nfqws/nfqws2-keenetic" echo "- **zapret2** (winws2.exe, its Lua) and **nfqws2-keenetic** (its strategies, lists, blobs): MIT, https://github.com/bol-van/zapret2, https://github.com/nfqws/nfqws2-keenetic"
echo "- **wintun** (inside sing-box): WireGuard's prebuilt-binary license, https://www.wintun.net" echo "- **wintun** (inside sing-box): WireGuard's prebuilt-binary license, https://www.wintun.net"
echo "- **CPython $( sed 's/.*+py//' "$DIST/components/tg-ws-proxy/.version" )** (tg-ws-proxy): PSF License, https://www.python.org" echo "- **CPython $( sed 's/.*+py//' "$DIST/components/tg-ws-proxy/.version" )** (tg-ws-proxy): PSF License, https://www.python.org"
echo "- **The programs themselves** (proxy-suite-service, proxy-ctl, proxy-suite) are built from"
echo " this repository and the Rust crates in its Cargo.lock, under their licenses (MIT and/or"
echo " Apache-2.0 for nearly all). The app is built on GPUI (Apache-2.0,"
echo " https://github.com/zed-industries/zed; its Windows backend patched as"
echo " vendor/gpui-pre-windows/PATCHED.md says) and GPUI Kit (Apache-2.0,"
echo " https://github.com/longbridge/gpui-kit), with Lucide's icons (ISC, https://lucide.dev)."
echo "- **Python packages** (tg-ws-proxy):" echo "- **Python packages** (tg-ws-proxy):"
sed -n 's/^\([A-Za-z0-9_.-]*\)==\([^ ]*\) .*/ - \1 \2, https:\/\/pypi.org\/project\/\1\/\2\//p' tools/tg-ws-proxy-requirements.txt sed -n 's/^\([A-Za-z0-9_.-]*\)==\([^ ]*\) .*/ - \1 \2, https:\/\/pypi.org\/project\/\1\/\2\//p' tools/tg-ws-proxy-requirements.txt
echo echo