sorry, it’s the INPUT file that’s not being found building in the sdk. It works using sfdk ‘manually’.
The command
rsvg-convert --width=$size --height=$size --output \
%{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/%{name}.png \
harbour-allthenews.svg
done
is using the right macros, but the input file, at the end isn’t found. I also tried (cribbed from storeman installer):
%define hicolor_icons_dir %{_datadir}/icons/hicolor
for s in 86 108 128 172
do
prof=${s}x${s}
install -d %{buildroot}%{hicolor_icons_dir}/$prof/apps
sailfish_svg2png -s 1 1 1 1 1 1 $s . %{buildroot}%{hicolor_icons_dir}/$prof/apps
done
The problem remains that from the SDK the INPUT file can’t be found (in storeman installer case, it’s in the root, as in allthenews, also).
It doesn’t really matter, since the SVG doesn’t change that often. I was just curious if I could make it work, as @attah suggested, with shadow builds in the SDK. I can get it to work from the cli (I was building patience-deck in @tomin’s way which is straight sfdk).