fix: use cargo-xwin wrapper script to resolve Tauri runner compatibility

Add cargo-xwin wrapper script that invokes `cargo xwin` subcommand and update Linux Windows build script to use wrapper as --runner instead of cargo-xwin binary name directly. Add chmod +x to ensure wrapper is executable before build.
This commit is contained in:
2026-03-17 19:25:04 +01:00
parent cfe38e5c3b
commit 61e6213b67
2 changed files with 5 additions and 1 deletions

View File

@@ -10,7 +10,7 @@
"tauri:build": "tauri build",
"helper:windows-x64": "bash ./scripts/build-tunnel-helper.sh x86_64-pc-windows-msvc",
"helper:macos-arm64": "bash ./scripts/build-tunnel-helper.sh aarch64-apple-darwin",
"tauri:build:windows-x64:linux": "XWIN_ARCH=x86_64 tauri build --runner cargo-xwin --target x86_64-pc-windows-msvc --config src-tauri/tauri.windows.conf.json"
"tauri:build:windows-x64:linux": "chmod +x ./scripts/cargo-xwin && XWIN_ARCH=x86_64 tauri build --runner ./scripts/cargo-xwin --target x86_64-pc-windows-msvc --config src-tauri/tauri.windows.conf.json"
},
"dependencies": {
"@tauri-apps/api": "2.10.1",