Use inkscape instead of rsvg-convert for SVG rendering
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ build-apk:
|
||||
before_script:
|
||||
# Install system dependencies
|
||||
- apt-get update -qq
|
||||
- apt-get install -y -qq curl unzip imagemagick librsvg2-bin > /dev/null
|
||||
- apt-get install -y -qq curl unzip imagemagick inkscape > /dev/null
|
||||
|
||||
# Install Node.js 22
|
||||
- curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
|
||||
|
||||
@@ -8,15 +8,15 @@ NC='\033[0m' # No Color
|
||||
|
||||
echo -e "${GREEN}Generating Android app icons...${NC}\n"
|
||||
|
||||
# Check for rsvg-convert (preferred for SVG) or inkscape as fallback
|
||||
if command -v rsvg-convert &> /dev/null; then
|
||||
SVG_RENDERER="rsvg"
|
||||
elif command -v inkscape &> /dev/null; then
|
||||
# Check for inkscape (preferred) or rsvg-convert as fallback
|
||||
if command -v inkscape &> /dev/null; then
|
||||
SVG_RENDERER="inkscape"
|
||||
elif command -v rsvg-convert &> /dev/null; then
|
||||
SVG_RENDERER="rsvg"
|
||||
else
|
||||
echo -e "${YELLOW}Warning: neither rsvg-convert nor inkscape found. Install one to render SVG icons.${NC}"
|
||||
echo "On Fedora/RHEL: sudo dnf install librsvg2-tools"
|
||||
echo "On Ubuntu/Debian: sudo apt-get install librsvg2-bin"
|
||||
echo -e "${YELLOW}Warning: neither inkscape nor rsvg-convert found. Install one to render SVG icons.${NC}"
|
||||
echo "On Fedora/RHEL: sudo dnf install inkscape"
|
||||
echo "On Ubuntu/Debian: sudo apt-get install inkscape"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user