bootstrap-windows.ps1: one-shot setup for a fresh Win 11 host. Checks for
VS 2022 Build Tools, installs Rust via rustup, Flutter 3.44+ with the
Chinese mirror, VCPKG with the x64-windows-static deps (libvpx,
libyuv, opus, aom), flutter_rust_bridge_codegen, clones the fork
from git.cardsoon.com, and patches google_fonts const->final in
the pub cache. Idempotent (re-runs skip already-done steps).
~30-60 min on first run.
build-windows.ps1: day-to-day build script. Runs flutter pub get,
flutter_rust_bridge_codegen (with a reminder to re-apply the 3 hand
patches to generated_bridge.dart), cargo build, flutter build windows
--release, optionally signtool-signs the .exe (if CERT_PATH env var
is set), and zips the Release/ folder into
rustdesk-VERSION-ARCH.zip. Incremental rebuilds are fast.
These two scripts mirror res/post-build-mac.sh in spirit: same purpose,
different platform. Both produce a redistributable artifact.
Run sequence on a fresh Win host:
1. Open 'x64 Native Tools Command Prompt for VS 2022'
2. powershell -ExecutionPolicy Bypass -File .\res\bootstrap-windows.ps1
3. .\res\build-windows.ps1
Output: rustdesk-1.4.7-x86_64.zip