Add icon to the build system output. (#208)

* Add icon to the build system output.
Make newly externally visible icon globally unique.
Compensate for this change in the .desktop and in the AppImage.
This commit is contained in:
N. Fontenot 2017-09-02 15:48:41 -05:00 committed by xarkes
parent efa2809242
commit f3aba5fdd0
4 changed files with 10 additions and 7 deletions

View File

@ -2,5 +2,5 @@
Type=Application
Name=Iaitō
Exec=iaito
Icon=iaito
Icon=iaito-small
Categories=Development;

View File

@ -157,6 +157,12 @@ unix {
PREFIX = /usr/local
}
icon_file = img/iaito-small.png
share_pixmaps.path = $$PREFIX/share/pixmaps
share_pixmaps.files = $$icon_file
desktop_file = iaito.desktop
# built-in no need for files atm
@ -165,16 +171,13 @@ unix {
share_applications.path = $$PREFIX/share/applications
share_applications.files = $$desktop_file
# TODO:
# iaito.png should be copied to $PREFIX/share/icons/$WIDTHx$HEIGHT
INSTALLS += target share_applications
INSTALLS += target share_applications share_pixmaps
# Triggered for example by 'qmake APPIMAGE=1'
!isEmpty(APPIMAGE){
# UGLY work around for the logo name in iaito.desktop
# Would be better to have a file called iaito.png in the first place
system(cp img/logo-small.png $$OUT_PWD/iaito.png)
system(cp img/iaito-small.png $$OUT_PWD/iaito-small.png)
appimage_root.path = /
appimage_root.files = $$OUT_PWD/iaito.png $$desktop_file

View File

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@ -55,7 +55,7 @@
<file>img/icons/transfer_white.svg</file>
<file>img/icons/spin_light.svg</file>
<file>img/logo2.png</file>
<file>img/logo-small.png</file>
<file>img/iaito-small.png</file>
<file>img/logo-small-white.png</file>
<file>img/icons/import_light.svg</file>
<file>fonts/Anonymous Pro.ttf</file>