bitburner-src/assets/Steam/achievements/convert.sh

12 lines
492 B
Bash
Raw Normal View History

2021-12-01 20:26:49 +01:00
#!/bin/bash
export INKSCAPE=/Applications/Inkscape.app/Contents/MacOS/inkscape
mkdir ${TMPDIR}real
for filename in real/*.svg; do
#./MyProgram.exe "$filename" "Logs/$(basename "$filename" .txt)_Log$i.txt"
cp "$filename" $TMPDIR${filename}
sed -i '' 's/00ff00/808080/g' $TMPDIR${filename}
$INKSCAPE --export-type png --export-filename tmp/${filename}-.png -w 256 $TMPDIR${filename}
$INKSCAPE --export-type png --export-filename tmp/${filename}.png -w 256 "$filename"
done