Skip to content

Commit

Permalink
Try to force PNG (again 3)
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Jan 30, 2025
1 parent be117e3 commit cc58362
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmake/linux/LinuxDeploy.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,6 @@ set(ENV{LD_LIBRARY_PATH} "${APP}/usr/lib/${lmms}/:${APP}/usr/lib/${lmms}/optiona
set(ENV{DISABLE_COPYRIGHT_FILES_DEPLOYMENT} 1)

# Patch desktop file
file(READ "${DESKTOP_FILE}" DESKTOP_FILE_CONTENTS)
string(REPLACE "Icon=${lmms}" "Icon=${lmms}.png" DESKTOP_FILE_CONTENTS "${DESKTOP_FILE_CONTENTS}")
file(WRITE "${DESKTOP_FILE}" "${DESKTOP_FILE_CONTENTS}")
file(COPY "${APP}/usr/icons/128x128@2/apps/${lmms}.png" DESTINATION "${APP}/")

file(APPEND "${DESKTOP_FILE}" "X-AppImage-Version=${CPACK_PROJECT_VERSION}\n")

# Build list of libraries to inform linuxdeploy about
Expand Down Expand Up @@ -235,6 +230,11 @@ endforeach()

if(CPACK_TOOL STREQUAL "appimagetool")
# Create ".AppImage" file using appimagetool (default)

# Prefer ".png" over ".svg" icon for AppImages
file(COPY "${APP}/usr/share/icons/hicolor/128x128@2/apps/${lmms}.png" DESTINATION "${APP}/")
file(REMOVE "${APP}/${lmms}.svg")

# appimage plugin needs ARCH set when running in extracted form from squashfs-root / CI
set(ENV{ARCH} "${ARCH}")
message(STATUS "Finishing the AppImage...")
Expand Down

0 comments on commit cc58362

Please sign in to comment.