Skip to content

Commit

Permalink
Add .DirIcon to AppImage (#6715)
Browse files Browse the repository at this point in the history
* Add .DirIcon to AppImage
* Add X-AppImage-Version to .desktop file
* Closes #6695
  • Loading branch information
tresf authored May 23, 2023
1 parent d551938 commit b322f80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/linux/package_linux.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ fi

# Patch the desktop file
sed -i 's/.*Exec=.*/Exec=lmms.real/' "$DESKTOPFILE"
echo "X-AppImage-Version=@VERSION@" >> "$DESKTOPFILE"

# Fix linking for soft-linked plugins
for file in "${APPDIR}usr/lib/lmms/"*.so; do
Expand Down Expand Up @@ -201,6 +202,9 @@ fi
rm -f "${APPDIR}/AppRun"
ln -sr "${APPDIR}/usr/bin/lmms" "${APPDIR}/AppRun"

# Add icon
ln -srf "${APPDIR}/lmms.png" "${APPDIR}/.DirIcon"

# Create AppImage
echo -e "\nFinishing the AppImage..."
run_and_log "$APPIMAGETOOL" "${APPDIR}" "@APPIMAGE_FILE@"
Expand Down

0 comments on commit b322f80

Please sign in to comment.