diff --git a/.gitignore b/.gitignore index 890a3cbf..cb52bceb 100644 --- a/.gitignore +++ b/.gitignore @@ -14,5 +14,6 @@ dist Makefile mirage mirage.pro.user +*.AppImage tags diff --git a/extra/linux/mirage.desktop b/extra/linux/mirage.desktop new file mode 100644 index 00000000..13d019b7 --- /dev/null +++ b/extra/linux/mirage.desktop @@ -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 diff --git a/extra/linux/mirage.png b/extra/linux/mirage.png new file mode 100644 index 00000000..ffa58eec Binary files /dev/null and b/extra/linux/mirage.png differ diff --git a/mirage.pro b/mirage.pro index 599563ea..24448b1e 100644 --- a/mirage.pro +++ b/mirage.pro @@ -34,11 +34,27 @@ dev { # Files to copy for `make install` -win32:executables.path = "C:/Program Files" -!win32:executables.path = /usr/local/bin -executables.files = $$TARGET +!dev:unix { + isEmpty(PREFIX) { PREFIX = /usr } -!dev:INSTALLS += executables + executables.path = $$PREFIX/bin + executables.files = $$TARGET + + 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)