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
- BUILD.md: complete build instructions for macOS desktop (Xcode 26.5,
Flutter 3.44, Dart 3.12, VCPKG, all patches explained)
- res/post-build-mac.sh: re-sign + install to /Applications + create dmg,
run after every 'flutter build macos --release'
Key issues documented in BUILD.md:
* Re-signing is mandatory (codesign --force --deep -s -)
* Use hdiutil for dmg, not create-dmg (macos-alias is x86_64 broken)
* libclang must be arm64 (use Xcode CLT, not homebrew llvm)
* EXCLUDED_ARCHS=x86_64 for arm64-only Rust dylib