From 8d8a3a7859af64cc5448a8d48a4413a82af7bf14 Mon Sep 17 00:00:00 2001 From: nessi Date: Tue, 17 Mar 2026 19:08:51 +0100 Subject: [PATCH] fix: check cargo-xwin availability using subcommand instead of binary name Change cargo-xwin detection from `command -v cargo-xwin` to `cargo xwin --version` to properly verify cargo subcommand availability on Linux systems cross-compiling to Windows targets. --- desktop-client/scripts/build-tunnel-helper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop-client/scripts/build-tunnel-helper.sh b/desktop-client/scripts/build-tunnel-helper.sh index aaf9ed4..3fb6b87 100644 --- a/desktop-client/scripts/build-tunnel-helper.sh +++ b/desktop-client/scripts/build-tunnel-helper.sh @@ -32,7 +32,7 @@ if [ "${TARGET}" = "i686-pc-windows-msvc" ]; then MINGW64_NT*|MSYS_NT*|CYGWIN_NT*) ;; Linux) - if ! command -v cargo-xwin >/dev/null 2>&1; then + if ! cargo xwin --version >/dev/null 2>&1; then echo "Linux cross-builds for Windows require cargo-xwin." echo "Install it with:" echo " cargo install --locked cargo-xwin"