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.
This commit is contained in:
2026-03-18 14:39:55 +01:00
parent a80a87e5ca
commit 4b2d50b603

View File

@@ -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