From cb6515898a4637d2d53e6cebf60ee71db2398d98 Mon Sep 17 00:00:00 2001 From: afkarxyz Date: Sat, 22 Nov 2025 07:05:35 +0700 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f167c1f..13b4f2f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -258,9 +258,18 @@ jobs: # Copy desktop file to usr/share/applications cp AppDir/spotiflac.desktop AppDir/usr/share/applications/ - # Create icon using ImageMagick - sudo apt-get install -y imagemagick - convert -size 256x256 xc:#FFD700 -gravity center -pointsize 80 -fill black -annotate +0+0 "SF" AppDir/spotiflac.png + # Use existing icon from build or convert SVG to PNG + if [ -f "build/appicon.png" ]; then + # Resize to 256x256 if needed + convert build/appicon.png -resize 256x256 AppDir/spotiflac.png + elif [ -f "frontend/public/icon.svg" ]; then + # Convert SVG to PNG + convert -background none -size 256x256 frontend/public/icon.svg AppDir/spotiflac.png + else + # Fallback: create simple icon + convert -size 256x256 radial-gradient:#FFD700-#FFA500 AppDir/spotiflac.png + fi + cp AppDir/spotiflac.png AppDir/usr/share/icons/hicolor/256x256/apps/ cp AppDir/spotiflac.png AppDir/.DirIcon