From 167eb501d95a76c4cfe4563fb53ceb5d2ea77d16 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Sun, 6 Aug 2023 13:41:06 -0600 Subject: [PATCH] Ladybird: Copy cacert.pem into the expected build-time path on macOS With the CMake build, the ladybird binary ends up in $build/bin/ladybird.app/Contents/MacOS. Which is a bit unfortunate for a few reasons, but the main one is that --enable-lagom-networking doesn't work with ./Meta/serenity.sh run lagom ladybird. Let's copy the file to the expected location. There's very likely better solutions we can use in the future. --- Ladybird/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Ladybird/CMakeLists.txt b/Ladybird/CMakeLists.txt index 45ba894463..6ee7c8fdfc 100644 --- a/Ladybird/CMakeLists.txt +++ b/Ladybird/CMakeLists.txt @@ -162,6 +162,7 @@ if (APPLE) COMMAND "${CMAKE_COMMAND}" -E copy_if_different "$" "${app_dir}" COMMAND "mkdir" -p "${bundle_dir}/Contents/Resources" COMMAND "iconutil" --convert icns "${CMAKE_CURRENT_SOURCE_DIR}/Icons/macos/app_icon.iconset" --output "${bundle_dir}/Contents/Resources/app_icon.icns" + COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${Lagom_BINARY_DIR}/cacert.pem" "${bundle_dir}/Contents" ) endif()