Document cargo-xwin Windows cross-build prerequisites
Build / build (, ubuntu-22.04) (push) Failing after 5s
Build / build (, windows-latest) (push) Has been cancelled
Build / release (push) Has been cancelled

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Homer
2026-07-13 10:45:10 +02:00
parent 8a2421597e
commit 544baf35e0
+10 -1
View File
@@ -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` 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 (GitHub Actions / Gitea Actions with a Windows runner), or locally from Linux
with [cargo-xwin](https://github.com/rust-cross/cargo-xwin): 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 ## Data