docs: add Linux cross-build instructions for Windows x86 NSIS installer

Add Ubuntu-to-Windows build workflow using cargo-xwin for i686-pc-windows-msvc target. Update build-tunnel-helper.sh with host OS detection, target validation, and cargo-xwin support for Linux cross-compilation. Add tauri.windows.conf.json to configure NSIS-only bundle output and npm script for Linux-based Windows builds. Update client-platforms.md to document cross-compilation support and clarify that MSI packaging still requires Windows environment.
This commit is contained in:
2026-03-17 19:03:50 +01:00
parent 5242c780e4
commit 84be690a50
5 changed files with 76 additions and 3 deletions

View File

@@ -59,6 +59,23 @@ npm run helper:windows-x86
npm run helper:macos-arm64
```
Ubuntu-to-Windows `Setup.exe` build:
```bash
cd desktop-client
cargo install --locked cargo-xwin
rustup target add i686-pc-windows-msvc
npm install
npm run helper:windows-x86
npm run tauri:build:windows-x86:linux
```
The resulting NSIS installer is written to:
- `desktop-client/src-tauri/target/i686-pc-windows-msvc/release/bundle/nsis/`
This Linux cross-build path is intended for NSIS `Setup.exe` output. Native MSI packaging and final Windows code signing should still be done on Windows.
Gateway utility scripts:
```bash