Add .desktop and placeholder icon to be installed

This commit is contained in:
miruka 2020-03-15 11:04:44 -04:00
parent 4d2345f4b9
commit f43a99df27
4 changed files with 32 additions and 6 deletions

1
.gitignore vendored
View File

@ -14,5 +14,6 @@ dist
Makefile
mirage
mirage.pro.user
*.AppImage
tags

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
Name=Mirage
GenericName=Matrix Chat Client
Exec=mirage
Icon=mirage
Terminal=false
Categories=Network;Chat;InstantMessaging;Qt;
StartupWMClass=mirage

BIN
extra/linux/mirage.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -34,11 +34,27 @@ dev {
# Files to copy for `make install`
win32:executables.path = "C:/Program Files"
!win32:executables.path = /usr/local/bin
!dev:unix {
isEmpty(PREFIX) { PREFIX = /usr }
executables.path = $$PREFIX/bin
executables.files = $$TARGET
!dev:INSTALLS += executables
shortcuts.path = $$PREFIX/share/applications
shortcuts.files = extra/linux/mirage.desktop
icons.path = $$PREFIX/share/pixmaps
icons.files = extra/linux/mirage.png
INSTALLS += executables shortcuts icons
}
!dev:win32 {
executables.path = "C:/Program Files"
executables.files = $$TARGET
INSTALLS += executables
}
# Libraries includes
@ -88,5 +104,5 @@ for(file, $$list($$glob_filenames(*.py))) {
}
QMAKE_CLEAN *= $$MOC_DIR $$OBJECTS_DIR $$RCC_DIR $$PYCACHE_DIRS $$QRC_FILE
QMAKE_CLEAN *= $$BUILD_DIR $$TARGET Makefile .qmake.stash
QMAKE_CLEAN *= $$glob_filenames(*.pyc, *.qmlc, *.jsc, *.egg-info)
QMAKE_CLEAN *= $$BUILD_DIR $$TARGET Makefile mirage.pro.user .qmake.stash
QMAKE_CLEAN *= $$glob_filenames(*.pyc, *.qmlc, *.jsc, *.egg-info, *.AppImage)