From 544baf35e0020a7f59f01a1c4c32f2db863b4718 Mon Sep 17 00:00:00 2001 From: Homer Date: Mon, 13 Jul 2026 10:45:10 +0200 Subject: [PATCH] Document cargo-xwin Windows cross-build prerequisites Co-Authored-By: Claude Fable 5 --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c027e1d..a73f790 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,16 @@ npm run tauri build # release bundles (deb/AppImage on Linux, NSIS/MSI on Wind Windows builds are produced by the CI workflow in `.github/workflows/build.yml` (GitHub Actions / Gitea Actions with a Windows runner), or locally from Linux with [cargo-xwin](https://github.com/rust-cross/cargo-xwin): -`npm run tauri build -- --runner cargo-xwin --target x86_64-pc-windows-msvc`. + +```sh +rustup target add x86_64-pc-windows-msvc +sudo apt-get install clang lld llvm nsis # llvm provides llvm-rc, needed for resource embedding +npm run tauri build -- --runner cargo-xwin --target x86_64-pc-windows-msvc +``` + +The exe and NSIS installer land in +`src-tauri/target/x86_64-pc-windows-msvc/release/` (first run downloads the +Windows SDK to `~/.cache/cargo-xwin`). ## Data