meson: Drop post install script
This commit is contained in:
parent
f3cc9dd09f
commit
b31db88086
2 changed files with 6 additions and 16 deletions
|
@ -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')])
|
|
@ -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…
Reference in a new issue