Skip to content

Commit

Permalink
boulder: Add %gtk_update_icon_cache action macro
Browse files Browse the repository at this point in the history
Most icon themes benefit from having their icon cache pre-generated at build time.

The invocation for doing so follows a distinct pattern, hence this macro could perhaps be gainfully used as a simpler substitution.

Signed-off-by: Rune Morling <ermo@serpentos.com>
  • Loading branch information
ermo authored Dec 27, 2024
1 parent baaea9a commit d54b564
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions boulder/data/macros/actions/misc.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
actions:

- gtk_update_icon_cache:
description: Pregenerate icon cache at build time
example:
%gtk_update_icon_cache
command: |
for i in %(installroot)%(datadir)/icons/*/; do
gtk-update-icon-cache -f $i
done
- install_bin:
description: Install files to %(bindir)
example: |
Expand Down

0 comments on commit d54b564

Please sign in to comment.