render_assets.fish 284 B

123456789101112
  1. set -l red (set_color -o red)
  2. set -l cyan (set_color -o cyan)
  3. for i in assets/*;
  4. set -l file_name (basename $i .svg)
  5. if test -f ./$file_name'.png'
  6. echo $red$file_name exists
  7. else
  8. echo $cyan'Creating '$file_name'.png'
  9. convert -background none $i ./$file_name'.png'
  10. end
  11. ;end