install desktop and icon in flatpak

This commit is contained in:
Rinigus 2020-03-24 09:50:50 +02:00
parent 15f7024f87
commit b9e3ba0b6f
2 changed files with 16 additions and 12 deletions

View File

@ -13,6 +13,9 @@ finish-args:
- --filesystem=xdg-download
- --talk-name=org.freedesktop.Notifications
rename-icon: mirage
rename-desktop-file: mirage.desktop
#cleanup:
# - /usr/include
@ -807,15 +810,15 @@ modules:
url: https://github.com/mirukana/matrix-nio.git
commit: ee2a90da2f1d7ce12df7153dd944fffdaf978787
# - name: mirage
# buildsystem: qmake
# sources:
# - type: dir
# path: .
- name: mirage
buildsystem: qmake
sources:
- type: git
url: https://github.com/mirukana/mirage.git
tag: v0.4.0
- type: dir
path: .
# - name: mirage
# buildsystem: qmake
# sources:
# - type: git
# url: https://github.com/mirukana/mirage.git
# tag: v0.4.1

View File

@ -43,10 +43,11 @@ dev {
shortcuts.path = $$PREFIX/share/applications
shortcuts.files = extra/linux/mirage.desktop
icons.path = $$PREFIX/share/pixmaps
icons.files = extra/linux/mirage.png
icons256.path = $$PREFIX/share/icons/hicolor/256x256/apps
icons256.extra = mkdir -p $(INSTALL_ROOT)/$$PREFIX/share/icons/hicolor/256x256/apps && cp $$PWD/extra/linux/mirage.png $(INSTALL_ROOT)/$$PREFIX/share/icons/hicolor/256x256/apps/$${TARGET}.png
INSTALLS += icons256
INSTALLS += executables shortcuts icons
INSTALLS += executables shortcuts icons256
}
!dev:win32 {