From f43a99df27401b0707a0526f4fef45a30f875d53 Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 15 Mar 2020 11:04:44 -0400 Subject: [PATCH] Add .desktop and placeholder icon to be installed --- .gitignore | 1 + extra/linux/mirage.desktop | 9 +++++++++ extra/linux/mirage.png | Bin 0 -> 2032 bytes mirage.pro | 28 ++++++++++++++++++++++------ 4 files changed, 32 insertions(+), 6 deletions(-) create mode 100644 extra/linux/mirage.desktop create mode 100644 extra/linux/mirage.png 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 0000000000000000000000000000000000000000..ffa58eec5b14e1adccb535b50e97579b90eba8c2 GIT binary patch literal 2032 zcmcIli&qn87XM~;goL1h&|QkVWAu);lvj2g*XXl)md++Z)esg~J zJ2Q3fu@hH1t#$$ctW4S#p9TN|T?7yupvgSYnGX$Cx+Q5l0bUh^J+&|<^0#G_0w621 z-$-1}x2X{H5NzEkNH5732y+hP0ijSBRJgCGG&hHz7gTbf;N;?_)c`maC&h2xE|NZ< zQj}x~J#H;&%5z=RHJ^=tdXp6Tt|1k5b}n`nZ*)!f@Hpn{N(}hT{^Ek*uFsAQ$ES4o z7GQsgAdxyhm#x3JCpQN_vo|2gf3evoO&>S$(qQ<`IH|AP{WW7|vUgdg`EgBnUanB# z;CJwfJi}a76Wd^}LQXSKP)7uQRB-GBV1D$b!4HpoJ-O}IW4hYQ>qTLasl#(y>JId1 zjl8>CP&x!1OR~O~*A_?~h&21gpOCt*=A&;;^54AJ|G%flU`0n;mlmgrMoGatwdGTn?dIg*qXqT-#w;RIOWjbSRKv>5g@03O!*LS!!{v1%g4V;9RLrA}0Pq zp)p#nfK&T*k|SV~dXCod!cD2-~KVjB})=2MVjDA+g?EyR_IA zln~SRcp+}&wXN);!Fn{RlDd%Rr2KJ>+B{2P+qemg`p)L)N}k8mVFGeGJ;N?&KCS}?l2S!JKb{QNK(86#*s+q^?vVZ-uM^?x;v5~q z5vgTV=92~2HUGnV_K7QYnuyTc%uw5#Nte4|;UJ}Z5`#w9{f`we=fA57vYc_Wa&U?^ z(sahFL+j2P8@g-l?;LyHEY_V}?U?r#BkIZ})6u+&Ns(qz4UcL_Y*C9@0kS>)hvY-E zBF#OrxvI&>4gB@lL+-Fw*eAwm(@$58j0xk2^XGsr@b|rN#AaCfa46iUcnq-yFzO)5 z4nmnJEO9yoaP67uxBUGUp6nwo6QsT1{TCf2y_mnWD+KIE^} z!@j4Y^%|pTmjA`lqAa|q@x#O$&E~4+tr3%to*4>8vFwg__Eu`GD!<+Jgx4iEPy$$| z9eDZEpgg!*T@i0Nrxg}906M`d>(xK2$$eqfX=iN_zMckaY>x|Yxal{49MB`En}ry@ zIfVGV4{&Zx;)kKinHEg%23oTzcM<{ba1uWXWtOtU|006a5MutjV8dO%h*My6lVpa6 zGM%Uc0+hLyI#7?{0+zS{!y8%R^B6w<4F^TM`|m(qymf38!8LnMVkih!Z6IRc-0cwf zJThj6+C^+0fi>9UNMCLq-iO3XjKmjLZNT}r>flt&cjzZAB1@Uj|cOobK_d! zL=wF*$s1f`eiaKx{%&s*4XRA(ehMe=JiEhAnesBbTt6%M;K@hv*5YZcuKJm-@9pR( SU%=lq07+Zf@fWsai+=_4C^zE( literal 0 HcmV?d00001 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)