Use linux/mangayomi.desktop file for all linux builds

This commit is contained in:
NBA2K1 2025-07-10 05:33:27 +02:00
parent 1e1f31214e
commit 45ae686abd
2 changed files with 29 additions and 16 deletions

View file

@ -294,14 +294,7 @@ jobs:
cp assets/app_icons/icon-red.png AppDir/usr/share/icons/hicolor/256x256/apps/mangayomi.png
cp assets/app_icons/icon-red.png AppDir/mangayomi.png
# Create desktop file in AppDir root
cat <<EOF > AppDir/mangayomi.desktop
[Desktop Entry]
Name=mangayomi
Exec=usr/bin/mangayomi
Icon=mangayomi
Type=Application
Categories=AudioVideo;
EOF
cp linux/mangayomi.desktop AppDir/mangayomi.desktop
# Create AppRun file
cat <<EOF > AppDir/AppRun
#!/bin/sh
@ -324,6 +317,7 @@ jobs:
tar czf rpm_build/SOURCES/mangayomi-${VERSION}.tar.gz -C rpm_build/SOURCES mangayomi-${VERSION}
mkdir -p rpm_build/SOURCES/usr/share/icons/hicolor/256x256/apps
cp assets/app_icons/icon-red.png rpm_build/SOURCES/usr/share/icons/hicolor/256x256/apps/mangayomi.png
cp linux/mangayomi.desktop rpm_build/SOURCES/
# RPM Spec File
cat <<EOF > rpm_build/SPECS/mangayomi.spec
Name: mangayomi
@ -346,14 +340,8 @@ jobs:
mkdir -p %{buildroot}/usr/share/icons/hicolor/256x256/apps
cp -r * %{buildroot}/usr/bin/
cp -r %{_sourcedir}/usr/share/* %{buildroot}/usr/share/
cat <<EOL > %{buildroot}/usr/share/applications/mangayomi.desktop
[Desktop Entry]
Name=mangayomi
Exec=/usr/bin/mangayomi
Icon=mangayomi
Type=Application
Categories=AudioVideo;
EOL
cp %{_sourcedir}/mangayomi.desktop %{buildroot}/usr/share/applications/mangayomi.desktop
%files
/usr/bin/*
/usr/share/applications/mangayomi.desktop

25
linux/mangayomi.desktop Normal file
View file

@ -0,0 +1,25 @@
[Desktop Entry]
Type=Application
Name=Mangayomi
Icon=mangayomi
Exec=/usr/bin/mangayomi
Categories=AudioVideo;
Keywords=Manga;Anime;BitTorrent;
StartupNotify=true
Comment=Read manga, light novels and watch anime
Comment[ar]=اقرأ المانغا والروايات الخفيفة وشاهد الأنمي
Comment[de]=Manga und Light Novels lesen und Anime schauen
Comment[es]=Leer manga, novelas ligeras y ver anime
Comment[es_419]=Leer manga, novelas ligeras y ver anime
Comment[fr]=Lire des mangas, des light novels et regarder des animés
Comment[id]=Membaca manga, light novel, dan menonton anime
Comment[it]=Leggi manga, light novel e guarda anime
Comment[pt]=Ler manga, light novels e assistir anime
Comment[pt_BR]=Ler mangá, light novels e assistir animes
Comment[ru]=Читать мангу и лайт-новеллы, смотреть аниме
Comment[th]=
Comment[tr]=Manga ve light novel oku, anime izle
Comment[zh]=
# Used for proper icon matching in X11 (ignored on Wayland)
StartupWMClass=Mangayomi