Update build.yml
This commit is contained in:
@@ -245,7 +245,7 @@ jobs:
|
|||||||
cp build/bin/SpotiFLAC AppDir/usr/bin/spotiflac
|
cp build/bin/SpotiFLAC AppDir/usr/bin/spotiflac
|
||||||
|
|
||||||
# Create desktop file
|
# Create desktop file
|
||||||
cat > AppDir/usr/share/applications/spotiflac.desktop << 'EOF'
|
cat > AppDir/spotiflac.desktop << 'EOF'
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=SpotiFLAC
|
Name=SpotiFLAC
|
||||||
Exec=spotiflac
|
Exec=spotiflac
|
||||||
@@ -255,12 +255,20 @@ jobs:
|
|||||||
Comment=Get Spotify tracks in true FLAC from Tidal/Deezer
|
Comment=Get Spotify tracks in true FLAC from Tidal/Deezer
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Copy icon if exists
|
# Copy desktop file to usr/share/applications
|
||||||
if [ -f "build/appicon.png" ]; then
|
cp AppDir/spotiflac.desktop AppDir/usr/share/applications/
|
||||||
cp build/appicon.png AppDir/usr/share/icons/hicolor/256x256/apps/spotiflac.png
|
|
||||||
elif [ -f "appicon.png" ]; then
|
# Create a simple icon (32x32 PNG with text)
|
||||||
cp appicon.png AppDir/usr/share/icons/hicolor/256x256/apps/spotiflac.png
|
cat > AppDir/.DirIcon << 'EOF'
|
||||||
fi
|
P3
|
||||||
|
32 32
|
||||||
|
255
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# Fill with a simple color pattern (placeholder icon)
|
||||||
|
for i in {1..1024}; do
|
||||||
|
echo "100 150 200" >> AppDir/.DirIcon
|
||||||
|
done
|
||||||
|
|
||||||
# Create AppRun
|
# Create AppRun
|
||||||
cat > AppDir/AppRun << 'EOF'
|
cat > AppDir/AppRun << 'EOF'
|
||||||
@@ -275,7 +283,7 @@ jobs:
|
|||||||
|
|
||||||
# Create AppImage
|
# Create AppImage
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
ARCH=x86_64 ./appimagetool AppDir dist/SpotiFLAC-${{ steps.version.outputs.version }}.AppImage
|
ARCH=x86_64 ./appimagetool --no-appstream AppDir dist/SpotiFLAC-${{ steps.version.outputs.version }}.AppImage
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user