bitburner-src/assets/Steam/achievements/convert.sh
2021-12-01 14:26:49 -05:00

12 lines
492 B
Bash
Executable File

#!/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