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:
@@ -88,8 +88,8 @@ if [ "${TARGET}" = "aarch64-apple-darwin" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp "${WG_BIN}" "${OUTPUT_DIR}/wg"
|
cp -L "${WG_BIN}" "${OUTPUT_DIR}/wg"
|
||||||
cp "${WG_QUICK_BIN}" "${OUTPUT_DIR}/wg-quick"
|
cp -L "${WG_QUICK_BIN}" "${OUTPUT_DIR}/wg-quick"
|
||||||
chmod +x "${OUTPUT_DIR}/wg" "${OUTPUT_DIR}/wg-quick"
|
chmod +x "${OUTPUT_DIR}/wg" "${OUTPUT_DIR}/wg-quick"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user