Adding desktop icon.

main
sergiotarxz 1 year ago
parent 8f9be2a656
commit 02048bf41d

@ -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

@ -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,

Loading…
Cancel
Save