Fix icon cache update script for local builds
- Make gtk4-update-icon-cache optional and gracefully handle failures - Use proper MESON_INSTALL_DESTDIR_PREFIX environment variable - Prevent build failures when icon cache can't be updated 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -104,9 +104,12 @@ i18n.merge_file(
|
|||||||
install_dir: get_option('sysconfdir') / 'xdg' / 'autostart',
|
install_dir: get_option('sysconfdir') / 'xdg' / 'autostart',
|
||||||
)
|
)
|
||||||
|
|
||||||
# Update icon cache manually (desktop-neutral)
|
# Update icon cache manually (desktop-neutral) - optional, ignore failures
|
||||||
meson.add_install_script('gtk4-update-icon-cache', '-q', '-t', '-f',
|
gtk_update_icon_cache = find_program('gtk4-update-icon-cache', required: false)
|
||||||
get_option('datadir') / 'icons' / 'hicolor')
|
if gtk_update_icon_cache.found()
|
||||||
|
meson.add_install_script('sh', '-c',
|
||||||
|
'gtk4-update-icon-cache -q -t -f "$MESON_INSTALL_DESTDIR_PREFIX/' + get_option('datadir') / 'icons' / 'hicolor' + '" || echo "Icon cache update skipped"')
|
||||||
|
endif
|
||||||
|
|
||||||
summary += {'Install dir': python.find_installation('python3').get_install_dir()}
|
summary += {'Install dir': python.find_installation('python3').get_install_dir()}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user