Skip to content

Commit

Permalink
Have an app icon (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryonakano authored Dec 1, 2018
1 parent 8adec2f commit 473f9ed
Show file tree
Hide file tree
Showing 8 changed files with 2,791 additions and 0 deletions.
538 changes: 538 additions & 0 deletions data/icons/128/com.github.ryonakano.reco.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
418 changes: 418 additions & 0 deletions data/icons/16/com.github.ryonakano.reco.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
448 changes: 448 additions & 0 deletions data/icons/24/com.github.ryonakano.reco.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
450 changes: 450 additions & 0 deletions data/icons/32/com.github.ryonakano.reco.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
475 changes: 475 additions & 0 deletions data/icons/48/com.github.ryonakano.reco.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
449 changes: 449 additions & 0 deletions data/icons/64/com.github.ryonakano.reco.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions data/meson.build
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
icon_sizes = ['16', '24', '32', '48', '64', '128']

foreach i : icon_sizes
install_data(
join_paths('icons', i, meson.project_name() + '.svg'),
install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', i + 'x' + i, 'apps')
)
endforeach

i18n.merge_file(
input: 'com.github.ryonakano.reco.desktop.in',
output: 'com.github.ryonakano.reco.desktop',
Expand Down
4 changes: 4 additions & 0 deletions meson/post_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
from subprocess import call

schemadir = path.join(environ['MESON_INSTALL_PREFIX'], 'share', 'glib-2.0', 'schemas')
iconcachedir = path.join(environ['MESON_INSTALL_PREFIX'], 'share', 'icons', 'hicolor')

if not environ.get('DESTDIR'):
print('Completing gsettings schemas…')
call(['glib-compile-schemas', schemadir])

print('Rebuilding desktop icon cache…')
call(['gtk-update-icon-cache', iconcachedir])

0 comments on commit 473f9ed

Please sign in to comment.