treehouse/scripts/mkicon.fish
liquidex c58c07d846 version history MVP
implement basic version history support; there's now an icon in the footer that lets you see the previous versions and their sources
I'm a bit worried about spoilers but honestly it's yet another way to hint yourself at the cool secrets so I don't mind
2024-09-28 23:45:06 +02:00

8 lines
242 B
Fish
Executable file

#!/usr/bin/env fish
set filename $argv[1]
set icon_name (basename $filename .svg)
set icon_base64 (svgcleaner --stdout $filename 2>/dev/null | base64 -w0)
printf "--icon-%s: url('data:image/svg+xml;base64,%s');" "$icon_name" "$icon_base64"