diff --git a/CMakeLists.txt b/CMakeLists.txt index ed96be3c..119b5ae1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -126,6 +126,7 @@ if(WIN32) elseif(LINUX) set(CPACK_GENERATOR External) set(CPACK_EXTERNAL_ENABLE_STAGING YES) + set(CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") set(CPACK_EXTERNAL_PACKAGE_SCRIPT "${PROJECT_BINARY_DIR}/appimage-generate.cmake") file(GENERATE @@ -154,8 +155,8 @@ elseif(LINUX) --appimage-extract-and-run --appdir=${CPACK_TEMPORARY_DIRECTORY} --executable=$ - --desktop-file=${CPACK_TEMPORARY_DIRECTORY}/share/applications/io.github.fabiangreffrath.woof.desktop - --icon-file=${CPACK_TEMPORARY_DIRECTORY}/share/icons/hicolor/128x128/apps/woof.png + --desktop-file=${CPACK_TEMPORARY_DIRECTORY}/usr/share/applications/io.github.fabiangreffrath.woof.desktop + --icon-file=${CPACK_TEMPORARY_DIRECTORY}/usr/share/icons/hicolor/128x128/apps/woof.png --output=appimage) ]]) else()