Adding desktop icon.

This commit is contained in:
sergiotarxz 2022-02-10 19:54:32 +01:00
parent 8f9be2a656
commit 02048bf41d
2 changed files with 22 additions and 1 deletions

View File

@ -3,7 +3,7 @@ Name=OpenMG
GenericName=Manga Reader
Comment=A manga reader
Comment[es]=A manga reader
Exec=OPENMGEXEC
Exec=openmg
Icon=openmg
Type=Application
Terminal=false

View File

@ -51,6 +51,27 @@ if images_on_lists
cArgs += ['-DLIST_IMAGES']
endif
# Install our icons in all the required sizes
icon_sizes = ['16', '24', '32', '48', '64', '128']
foreach i : icon_sizes
install_data(
'openmg.svg',
install_dir: get_option('datadir') / 'icons' / 'hicolor' / i + 'x' + i / 'apps',
rename: meson.project_name() + '.svg'
)
install_data(
'openmg.svg',
install_dir: get_option('datadir') / 'icons' / 'hicolor' / i + 'x' + i + '@2' / 'apps',
rename: meson.project_name() + '.svg'
)
endforeach
install_data(
'me.sergiotarxz.openmg.desktop',
install_dir: get_option('datadir') / 'applications',
)
executable('openmg',
sources,
dependencies : openmgdeps,