windows: a setup program, and an uninstall entry in Settings > Apps

ProxySuite-<version>-windows-x64-setup.exe (NSIS, English and Russian):
it unpacks the release into its temporary folder and runs the release's
own proxy-suite-service.exe install from there, as install.cmd does from
the zip (unpacked straight into Program Files, an upgrade would find its
files in use). It refuses 32-bit Windows and anything before 10 1903, and
offers Windows' OpenSSH Client, unchecked, for the SSH tunnel.

install now writes the entry in Settings > Apps (uninstall.cmd; quietly,
the service's uninstall), and uninstall removes it, with WinDivert's
driver service when it is the suite's own.

The release workflow publishes the setup beside the zip. The app's
icon and GPUI's manifest share one resource (llvm-rc for both); the
build scripts' clones retry, and are kept for the next build.
Tested under Wine: tools/wine-setup-test.sh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Opus 5.5 committed 2026-10-27 13:45:09 +03:00
1 parent ae31e499ca
commit ae58bd1f12
14 files changed
+421 -33

No files matched your search

+18 -6
View File
@@ -1,16 +1,19 @@
#!/usr/bin/env bash
# The release: ProxySuite-<version>-windows-x64.zip in dist/, with the programs (the service,
# proxy-ctl, the app), every component (fetched and verified), the install scripts, the README
# and the licenses.
# The release, in dist/: ProxySuite-<version>-windows-x64-setup.exe, the setup program, and
# ProxySuite-<version>-windows-x64.zip, the same unpacked with install.cmd. Both hold the
# programs (the service, 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, go; nix
# for the app's shader compiler, tools/fxc-wine.sh)
# nix develop --command tools/package.sh (needs curl, git, unzip, zip, pip, go, makensis;
# nix for the app's shader compiler, tools/fxc-wine.sh)
set -euo pipefail
cd "$(dirname "$0")/.."
VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -1)
NAME=ProxySuite-$VERSION-windows-x64
DIST=dist/$NAME
CACHE=${CACHE:-${XDG_CACHE_HOME:-$HOME/.cache}/proxy-suite-windows}
# The sources tools/build-*.sh clone, kept for the next build.
export SRC_CACHE=$CACHE/src
rm -rf "$DIST" "dist/$NAME.zip"
mkdir -p "$DIST/components"
@@ -30,6 +33,8 @@ GPUI_FXC_PATH="$PWD/tools/fxc-wine.sh" cargo xwin build -q --release -p ps-gui -
for exe in proxy-suite-service proxy-ctl proxy-suite; do
cp "target/x86_64-pc-windows-msvc/release/$exe.exe" "$DIST/"
done
# Its build only warns without its icon (cargo -q shows no warning): the release has it.
llvm-readobj --coff-resources "$DIST/proxy-suite.exe" | grep 'Type: ICON' >/dev/null || { echo "proxy-suite.exe has no icon"; exit 1; }
cp ../LICENSE README.md "$DIST/"
cp tools/install.cmd tools/uninstall.cmd "$DIST/"
@@ -73,4 +78,11 @@ echo "== THIRD-PARTY.md"
echo "== zip"
(cd dist && zip -qr "$NAME.zip" "$NAME")
(cd dist && sha256sum "$NAME.zip" | tee "$NAME.zip.sha256")
du -h "dist/$NAME.zip"
echo "== setup"
# Windows' file version takes four numbers: 0.2.0-pre.1 is 0.2.0.0.
VERSION4=$(sed 's/-.*//' <<<"$VERSION").0
rm -f "dist/$NAME-setup.exe"
makensis -V2 -INPUTCHARSET UTF8 -DVERSION="$VERSION" -DVERSION4="$VERSION4" -DRELEASE="$PWD/$DIST" -DICON="$PWD/crates/ps-gui/assets/proxy-suite.ico" -DOUT="$PWD/dist/$NAME-setup.exe" tools/installer.nsi
(cd dist && sha256sum "$NAME-setup.exe" | tee "$NAME-setup.exe.sha256")
du -h "dist/$NAME.zip" "dist/$NAME-setup.exe"