Skip to content

Commit

Permalink
Try 64x64 one more time
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Jan 31, 2025
1 parent 0918a5f commit 2dfbf57
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmake/linux/LinuxDeploy.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ set(ENV{DISABLE_COPYRIGHT_FILES_DEPLOYMENT} 1)
# Patch desktop file
file(APPEND "${DESKTOP_FILE}" "X-AppImage-Version=${CPACK_PROJECT_VERSION}\n")

# Prefer a hard-copy of .DirIcon over appimagetool's symlinking
file(COPY "${APP}/usr/share/icons/hicolor/64x64/apps/${lmms}.png" DESTINATION "${APP}")
file(RENAME "${APP}/${lmms}.png" "${APP}/.DirIcon")
file(COPY "${APP}/usr/share/icons/hicolor/64x64/apps/${lmms}.png" DESTINATION "${APP}")

# Build list of libraries to inform linuxdeploy about
# e.g. --library=foo.so --library=bar.so
file(GLOB LIBS "${APP}/usr/lib/${lmms}/*.so")
Expand Down Expand Up @@ -160,6 +165,9 @@ execute_process(COMMAND "${LINUXDEPLOY_BIN}"
COMMAND_ECHO ${COMMAND_ECHO}
COMMAND_ERROR_IS_FATAL ANY)

# Remove recenly deployed svg icon file
file(REMOVE "${APP}/${lmms}.svg")

# Remove libraries that are normally sytem-provided
file(GLOB EXCLUDE_LIBS
"${APP}/usr/lib/libwine*"
Expand Down

0 comments on commit 2dfbf57

Please sign in to comment.