Truly independent web browser
Meta+UI: Package the browser and its symbols with CPack
Jelle Raaijmakers06c35f0fa5ca
diff --git a/Meta/CMake/ladybird_helper_processes.cmake b/Meta/CMake/ladybird_helper_processes.cmakeindex 78a8b3f3b9e..f4d5e76205d 100644--- a/Meta/CMake/ladybird_helper_processes.cmake+++ b/Meta/CMake/ladybird_helper_processes.cmake@@ -51,6 +51,8 @@ function(ladybird_sign_helper_process target)list(APPEND release_entitlements com.apple.security.cs.allow-jit)endif()ladybird_write_entitlements("${CMAKE_CURRENT_BINARY_DIR}/${target}.release.entitlements" ${release_entitlements})+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${target}.release.entitlements" DESTINATION entitlements+ COMPONENT ladybird_Runtime)add_custom_command(TARGET ${target} POST_BUILDCOMMAND codesign -s - -f -o runtime --entitlements "${entitlements_file}" "$<TARGET_FILE:${target}>"diff --git a/Meta/CMake/packaging.cmake b/Meta/CMake/packaging.cmakeindex 93b1cfd3a53..8b723fc84e2 100644--- a/Meta/CMake/packaging.cmake+++ b/Meta/CMake/packaging.cmake@@ -2,6 +2,7 @@ set(CPACK_GENERATOR "TGZ")set(CPACK_STRIP_FILES TRUE)set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)set(CPACK_COMPONENTS_ALL js wasm)+set(CPACK_THREADS 0)if (APPLE)if("arm64" IN_LIST CMAKE_OSX_ARCHITECTURES AND "x86_64" IN_LIST CMAKE_OSX_ARCHITECTURES)set(CPACK_SYSTEM_NAME "macOS-universal2")@@ -14,5 +15,7 @@ endif()set(CPACK_ARCHIVE_JS_FILE_NAME "ladybird-js-${CPACK_SYSTEM_NAME}")set(CPACK_ARCHIVE_WASM_FILE_NAME "ladybird-wasm-${CPACK_SYSTEM_NAME}")+set(CPACK_ARCHIVE_LADYBIRD_RUNTIME_FILE_NAME "ladybird-${CPACK_SYSTEM_NAME}")+set(CPACK_ARCHIVE_LADYBIRD_SYMBOLS_FILE_NAME "ladybird-symbols-${CPACK_SYSTEM_NAME}")include(CPack)diff --git a/UI/cmake/InstallRules.cmake b/UI/cmake/InstallRules.cmakeindex 2c634c5186b..9335c0dd1b4 100644--- a/UI/cmake/InstallRules.cmake+++ b/UI/cmake/InstallRules.cmake@@ -74,6 +74,9 @@ if (APPLE)endif()"COMPONENT ladybird_Runtime)++ install(FILES "${LADYBIRD_SOURCE_DIR}/Meta/Entitlements.plist" DESTINATION entitlements+ RENAME Ladybird.release.entitlements COMPONENT ladybird_Runtime)endif()install(TARGETS ${all_required_lagom_libraries}@@ -117,7 +120,7 @@ if (LADYBIRD_GENERATE_SYMBOL_FILES)add_custom_target(ladybird_symbol_files ALL DEPENDS ${symbol_files})install(DIRECTORY "${symbol_files_dir}/"- DESTINATION .+ DESTINATION symbolsCOMPONENT ladybird_SymbolsEXCLUDE_FROM_ALL)