From 535c9e63afa226e334bf7e3e2835dc130e853dee Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 9 Jun 2021 19:14:52 +0200 Subject: revised icon loading on Windows and packaging again * We don't need the PNG icons on Windows as the compiled-in ICO should suffice * Ship the dependencies of the SVG pixbuf loader. * The PNG pixbuf loader is still distributed, as we at least need it for loading the icon theme. * Install a loaders.cache - without it, the pixbuf loaders won't be found. This file can be generated by gdk-pixbuf-query-loaders but apparently has to be modified by hand. * Regenerate the icon cache using gtk-update-icon-cache. * Icon themes are found now. Unfortunately, we have to distribute the entire Adwaita icon theme as distributing only the scalable (SVG) icons does not work for some strange reason (FIXME). --- win32/loaders.cache | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 win32/loaders.cache (limited to 'win32') diff --git a/win32/loaders.cache b/win32/loaders.cache new file mode 100644 index 0000000..a34ae4d --- /dev/null +++ b/win32/loaders.cache @@ -0,0 +1,12 @@ +"lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.dll" +"png" 5 "gdk-pixbuf" "PNG" "LGPL" +"image/png" "" +"png" "" +"\211PNG\r\n\032\n" "" 100 + +"lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll" +"svg" 6 "gdk-pixbuf" "Scalable Vector Graphics" "LGPL" +"image/svg+xml" "image/svg" "image/svg-xml" "image/vnd.adobe.svg+xml" "text/xml-svg" "image/svg+xml-compressed" "" +"svg" "svgz" "svg.gz" "" +"