add chatterino icon to linux install script

This commit is contained in:
Rasmus Karlsson 2019-05-11 00:01:32 +02:00
parent 3bbee62f32
commit 8c46cbf571
3 changed files with 8 additions and 5 deletions

View file

@ -409,11 +409,13 @@ linux {
desktop.files = resources/chatterino.desktop
desktop.path = $$PREFIX/share/applications
# TODO: fix icon
# icon.files = resources/icon.png
# icon.path = $$PREFIX/share/icons/hicolor/256x256/chatterino.png
build_icons.path = .
build_icons.commands = @echo $$PWD && mkdir -p $$PWD/resources/linuxinstall/icons/hicolor/256x256 && cp $$PWD/resources/icon.png $$PWD/resources/linuxinstall/icons/hicolor/256x256/chatterino.png
icon.files = $$PWD/resources/linuxinstall/icons/hicolor/256x256/chatterino.png
icon.path = $$PREFIX/share/icons/hicolor/256x256/apps
target.path = $$PREFIX/bin
INSTALLS += desktop target
INSTALLS += desktop build_icons icon target
}

1
resources/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
linuxinstall

View file

@ -8,7 +8,7 @@ ignored_files = ['qt.conf', 'resources.qrc', 'resources_autogenerated.qrc', 'win
# to ignore all files in a/b, add a/b to ignored_directories.
# this will ignore a/b/c/d.txt and a/b/xd.txt
ignored_directories = ['__pycache__']
ignored_directories = ['__pycache__', 'linuxinstall']
def isNotIgnored(file):
# check if file exists in an ignored direcory