From ced0e12987baa255d156225bdc214adaee7215b7 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Wed, 13 Nov 2024 11:21:21 +0100 Subject: [PATCH] iconbrowser test: URI-encode the remote path Otherwise the download fails. We need to provide both the encoded path, and the name for the local file, as cmake doesn't provide an encoding helper. Change-Id: Id2d1c197f9ee1326ee229ebd32e5af156c970aed Reviewed-by: Assam Boudjelthia Reviewed-by: Alexandru Croitor (cherry picked from commit 5ecbba1648676a9b2ca6a097c133ff5e9e0a4bd1) Reviewed-by: Qt Cherry-pick Bot --- tests/manual/iconbrowser/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/manual/iconbrowser/CMakeLists.txt b/tests/manual/iconbrowser/CMakeLists.txt index b0fefba5db..bafe79200b 100644 --- a/tests/manual/iconbrowser/CMakeLists.txt +++ b/tests/manual/iconbrowser/CMakeLists.txt @@ -29,6 +29,7 @@ target_link_libraries(iconbrowser PRIVATE endif() if (ANDROID) + set(font_uri "MaterialSymbolsOutlined%5BFILL%2CGRAD%2Copsz%2Cwght%5D.ttf") set(font_filename "MaterialSymbolsOutlined[FILL,GRAD,opsz,wght].ttf") if (QT_ALLOW_DOWNLOAD) include(FetchContent) @@ -36,7 +37,7 @@ if (ANDROID) FetchContent_Declare( MaterialIcons URL - "https://github.com/google/material-design-icons/raw/master/variablefont/${font_filename}" + "https://github.com/google/material-design-icons/raw/master/variablefont/${font_uri}" DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR} DOWNLOAD_NAME "${font_filename}" DOWNLOAD_NO_EXTRACT TRUE