by roundabout, Sunday, 27 August 2017, 05:07:23 (1503810443), pushed by roundabout, Sunday, 11 May 2025, 13:22:13 (1746969733)
Author identity: nana-4 <nana-4@users.noreply.github.com>
96bffc0b13c81a0a608e036da5b1c720e647a11a
src/gtk-2.0/render-asset.sh
@@ -1,4 +1,5 @@
#! /bin/bash
set -ueo pipefail
INKSCAPE="/usr/bin/inkscape"
OPTIPNG="/usr/bin/optipng"
@@ -11,13 +12,12 @@ i=${1}
if [ -f $ASSETS_DIR/$i.png ]; then
echo $ASSETS_DIR/$i.png exists.
else
echo
echo Rendering $ASSETS_DIR/$i.png
$INKSCAPE --export-id=$i \
--export-id-only \
--export-background-opacity=0 \
--export-png=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null \
&& $OPTIPNG -o7 --quiet $ASSETS_DIR/$i.png
&& $OPTIPNG -o7 --quiet $ASSETS_DIR/$i.png
fi
exit 0
src/gtk-3.0/gtk-common/render-asset.sh
@@ -1,4 +1,5 @@
#! /bin/bash
set -ueo pipefail
INKSCAPE="/usr/bin/inkscape"
OPTIPNG="/usr/bin/optipng"
@@ -11,23 +12,21 @@ i=${1}
if [ -f $ASSETS_DIR/$i.png ]; then
echo $ASSETS_DIR/$i.png exists.
else
echo
echo Rendering $ASSETS_DIR/$i.png
$INKSCAPE --export-id=$i \
--export-id-only \
--export-png=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null \
&& $OPTIPNG -o7 --quiet $ASSETS_DIR/$i.png
&& $OPTIPNG -o7 --quiet $ASSETS_DIR/$i.png
fi
if [ -f $ASSETS_DIR/$i@2.png ]; then
echo $ASSETS_DIR/$i@2.png exists.
else
echo
echo Rendering $ASSETS_DIR/$i@2.png
$INKSCAPE --export-id=$i \
--export-dpi=192 \
--export-id-only \
--export-png=$ASSETS_DIR/$i@2.png $SRC_FILE >/dev/null \
&& $OPTIPNG -o7 --quiet $ASSETS_DIR/$i@2.png
&& $OPTIPNG -o7 --quiet $ASSETS_DIR/$i@2.png
fi
exit 0