CMake: Don't copy desktop file to resources

No longer needed as of d5037f1242.
This commit is contained in:
Stenzek
2025-12-16 21:52:58 +10:00
parent fe8d2e0329
commit 6521355343

View File

@@ -227,15 +227,4 @@ function(add_core_resources target)
endif()
add_resources(${target} ${path} ${CMAKE_SOURCE_DIR}/data/resources/)
endforeach()
# Linux platforms need a copy of the .desktop and icon file because Wayland stupidity.
# See QtHost::EarlyProcessStartup() for where this is used and why. We still need to set it when running
# as a Flatpak, but thankfully we don't need the extra copy.
if((LINUX OR BSD) AND (NOT DEFINED ENV{container}))
message(STATUS "Copying desktop file to resources directory.")
set(PACKAGING_SOURCE_DIR "${CMAKE_SOURCE_DIR}/scripts/packaging")
foreach(path "org.duckstation.DuckStation.desktop" "org.duckstation.DuckStation.png")
add_resources(${target} "${PACKAGING_SOURCE_DIR}/${path}" "${PACKAGING_SOURCE_DIR}")
endforeach()
endif()
endfunction()