feat(cpn): allow simulator standalone on Linux (#6898)

This commit is contained in:
Peter Feerick
2026-01-10 12:46:10 +10:00
committed by GitHub
parent 10440e0da7
commit a1d1c28f91
4 changed files with 65 additions and 2 deletions
+11
View File
@@ -325,6 +325,17 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
install(TARGETS ${SIMULATOR_NAME}
DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR})
# configure custom AppRun script from template
configure_file(${COMPANION_TARGETS_DIR}/AppRun.in ${CMAKE_BINARY_DIR}/AppDir/AppRun @ONLY
)
# Make it executable
file(CHMOD ${CMAKE_BINARY_DIR}/AppDir/AppRun
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
GROUP_READ GROUP_EXECUTE
WORLD_READ WORLD_EXECUTE
)
# configure and set variables used by package script
set(COMPANION_DESKTOP_FILE ${CMAKE_CURRENT_BINARY_DIR}/${COMPANION_NAME}.desktop)
configure_file(${COMPANION_TARGETS_DIR}/companion.desktop.in ${COMPANION_DESKTOP_FILE} @ONLY)