Document cargo-xwin Windows cross-build prerequisites
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user