by roundabout, Thursday, 27 February 2020, 03:03:40 (1582772620), pushed by roundabout, Sunday, 11 May 2025, 13:22:47 (1746969767)
Author identity: Yauhen Kirylau <actionless.loveless@gmail.com>
1108f32bab1abd9ab757ce9c4cdb793208316e24
src/gtk-2.0/render-asset.sh
@@ -5,12 +5,6 @@ RENDER_SVG="$(command -v rendersvg)" || true
INKSCAPE="$(command -v inkscape)" || true
OPTIPNG="$(command -v optipng)" || true
if "$INKSCAPE" --help | grep -e "--export-png" > /dev/null; then
EXPORT_FILE_OPTION="--export-png"
else
EXPORT_FILE_OPTION="--export-file"
fi
if [[ "$1" == "dark" ]]; then
SRC_FILE="assets-dark.svg"
ASSETS_DIR="assets-dark"
@@ -39,6 +33,11 @@ if [[ -n "${RENDER_SVG}" ]]; then
--zoom ${ZOOM} \
"$SRC_FILE" "$ASSETS_DIR/$i.png"
else
if "$INKSCAPE" --help | grep -e "--export-png" > /dev/null; then
EXPORT_FILE_OPTION="--export-png"
else
EXPORT_FILE_OPTION="--export-file"
fi
"$INKSCAPE" --export-id="$i" \
--export-id-only \
--export-dpi=${DPI} \
src/gtk/render-asset.sh
@@ -5,10 +5,12 @@ RENDER_SVG="$(command -v rendersvg)" || true
INKSCAPE="$(command -v inkscape)" || true
OPTIPNG="$(command -v optipng)" || true
if "$INKSCAPE" --help | grep -e "--export-png" > /dev/null; then
EXPORT_FILE_OPTION="--export-png"
else
EXPORT_FILE_OPTION="--export-file"
if [ -n "$INKSCAPE" ] ; then
if "$INKSCAPE" --help | grep -e "--export-png" > /dev/null; then
EXPORT_FILE_OPTION="--export-png"
else
EXPORT_FILE_OPTION="--export-file"
fi
fi
SRC_FILE="assets.svg"