Skip to content

Commit

Permalink
build: Use gnome.post_install() (#201)
Browse files Browse the repository at this point in the history
When GTK3 is not installed, gtk-update-icon-cache is not available.
By using gnome.post_install() we can use gtk4-update-icon-cache provided by GTK4.
  • Loading branch information
bobby285271 authored Apr 21, 2023
1 parent 86556ff commit 6d8e23a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 24 deletions.
13 changes: 11 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
project('com.github.davidmhewitt.torrential', 'vala', 'c', version: '2.0.1')
project(
'com.github.davidmhewitt.torrential',
'vala', 'c',
version: '3.0.0',
meson_version: '>= 0.59.0',
)

gnome = import('gnome')
i18n = import('i18n')
Expand Down Expand Up @@ -35,4 +40,8 @@ subdir('data')
subdir('src')
subdir('po')

meson.add_install_script('meson/post_install.py')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
)
22 changes: 0 additions & 22 deletions meson/post_install.py

This file was deleted.

0 comments on commit 6d8e23a

Please sign in to comment.