Browse Source

meson: Drop post install script

merge-requests/1327/merge
Julian Sparber 4 years ago
parent
commit
b31db88086
  1. 14
      build-aux/meson_post_install.py
  2. 8
      meson.build

14
build-aux/meson_post_install.py

@ -1,14 +0,0 @@
#!/usr/bin/env python3
from os import environ, path
from subprocess import call
if not environ.get('DESTDIR', ''):
PREFIX = environ.get('MESON_INSTALL_PREFIX', '/usr/local')
DATA_DIR = path.join(PREFIX, 'share')
print('Updating icon cache...')
call(['gtk-update-icon-cache', '-qtf', path.join(DATA_DIR, 'icons/hicolor')])
print("Compiling new schemas...")
call(["glib-compile-schemas", path.join(DATA_DIR, 'glib-2.0/schemas')])
print("Updating desktop database...")
call(["update-desktop-database", path.join(DATA_DIR, 'applications')])

8
meson.build

@ -2,7 +2,7 @@ project('fractal',
'rust',
version: '0.0.1',
license: 'GPL-3.0-or-later',
meson_version: '>= 0.57')
meson_version: '>= 0.59')
i18n = import('i18n')
gnome = import('gnome')
@ -80,4 +80,8 @@ subdir('data')
subdir('po')
subdir('src')
meson.add_install_script('build-aux/meson_post_install.py')
gnome.post_install(
gtk_update_icon_cache: true,
glib_compile_schemas: true,
update_desktop_database: true,
)

Loading…
Cancel
Save