From 4b2d50b6033594cd6bae0d543695905f1693e448 Mon Sep 17 00:00:00 2001 From: nessi Date: Wed, 18 Mar 2026 14:39:55 +0100 Subject: [PATCH] fix: resolve symlinks when copying WireGuard tools for macOS bundle Add -L flag to cp commands to dereference symlinks and copy actual binaries instead of symlink references when bundling wg and wg-quick tools for aarch64-apple-darwin target. --- desktop-client/scripts/build-tunnel-helper.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop-client/scripts/build-tunnel-helper.sh b/desktop-client/scripts/build-tunnel-helper.sh index ce5deb6..ad36fa1 100644 --- a/desktop-client/scripts/build-tunnel-helper.sh +++ b/desktop-client/scripts/build-tunnel-helper.sh @@ -88,8 +88,8 @@ if [ "${TARGET}" = "aarch64-apple-darwin" ]; then exit 1 fi - cp "${WG_BIN}" "${OUTPUT_DIR}/wg" - cp "${WG_QUICK_BIN}" "${OUTPUT_DIR}/wg-quick" + cp -L "${WG_BIN}" "${OUTPUT_DIR}/wg" + cp -L "${WG_QUICK_BIN}" "${OUTPUT_DIR}/wg-quick" chmod +x "${OUTPUT_DIR}/wg" "${OUTPUT_DIR}/wg-quick" fi