Add desktop icons on the AppImage

remotes/origin/HEAD
Konstantinos Sideris 7 years ago
parent e4c8a555d6
commit c4412e8b68
  1. 26
      .ci/linux/deploy.sh
  2. 4
      .gitignore
  3. 3
      Makefile
  4. 1
      resources/nheko.desktop

@ -2,10 +2,22 @@
set -e
mkdir -p appdir
cp build/nheko appdir/
cp resources/nheko.desktop appdir/
cp resources/nheko*.png appdir/
APP=nheko
DIR=${APP}.AppDir
# Set up AppImage structure.
mkdir -p ${DIR}/usr/{bin,share/pixmaps,share/applications}
# Copy resources.
cp build/nheko ${DIR}/usr/bin
cp resources/nheko.desktop ${DIR}/usr/share/applications/nheko.desktop
cp resources/nheko.png ${DIR}/usr/share/pixmaps/nheko.png
for iconSize in 16 32 48 64 128 256 512; do
IconDir=${DIR}/usr/share/icons/hicolor/${iconSize}x${iconSize}/apps
mkdir -p ${IconDir}
cp resources/nheko-${iconSize}.png ${IconDir}/nheko.png
done
wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
chmod a+x linuxdeployqt*.AppImage
@ -14,7 +26,9 @@ unset QTDIR
unset QT_PLUGIN_PATH
unset LD_LIBRARY_PATH
./linuxdeployqt*.AppImage ./appdir/*.desktop -bundle-non-qt-libs
./linuxdeployqt*.AppImage ./appdir/*.desktop -appimage
./linuxdeployqt*.AppImage \
${DIR}/usr/share/applications/nheko.desktop \
-bundle-non-qt-libs\
-appimage
chmod +x nheko-x86_64.AppImage

4
.gitignore vendored

@ -78,3 +78,7 @@ result
*.dmg
dist/MacOS/nheko.app/Contents/MacOS/nheko
.clang
# AppImage
*.AppImage
*.AppDir

@ -15,6 +15,9 @@ test:
linux-appimage:
@./.ci/linux/deploy.sh
linux-install:
cp -f nheko*.AppImage ~/.local/bin
macos-app: release-debug
@./.ci/macos/deploy.sh

@ -6,6 +6,5 @@ Exec=nheko
Icon=nheko
Type=Application
Categories=Network;InstantMessaging;Qt;
Encoding=UTF-8
StartupWMClass=nheko
Terminal=false

Loading…
Cancel
Save