diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5a87d60a..65ace4e0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 - diff --git a/scripts/generate-icons.sh b/scripts/generate-icons.sh index 924b5f00..4bab5b07 100644 --- a/scripts/generate-icons.sh +++ b/scripts/generate-icons.sh @@ -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