Skip to content

Commit 50bdf63

Browse files
fix broken inkscape rendering
1 parent 8480e98 commit 50bdf63

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

logo/convert.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
set -e
33
cd "$(dirname "$(readlink -f "$0")")"
44

5+
# workaround for https://gitlab.com/inkscape/inkscape/-/issues/4716#note_1898150983
6+
export SELF_CALL=disable
7+
58
generateImage() {
69
local infile="$1"
710
local outfile="$2"
@@ -32,14 +35,14 @@ for image in "${CONVERSION[@]}"; do
3235
generateImage "$infile" "$outfolder"/"$outfile" "$size" &
3336
done
3437
;;
35-
static)
38+
static)
3639
for format in hdpi:72 mdpi:48 xhdpi:96 xxhdpi:144 xxxhdpi:192; do
3740
outfolder=assets/mipmap-"$(cut -d':' -f1 <<< "$format")"
3841
size="$(cut -d':' -f2 <<< "$format")"
3942
generateImage "$infile" "$outfolder"/"$outfile" "$size" &
4043
done
4144
;;
42-
*)
45+
*)
4346
echo "unknown type $type" >&2
4447
exit 1
4548
esac

0 commit comments

Comments
 (0)