Don't generate desktop file form metainfo

Validator was complaining about having an icon in the metainfo, but we
need the icon there to generate the desktop file. idk what to do about
that so I removed the desktop file generator
This commit is contained in:
Avery
2023-11-29 16:37:39 -05:00
parent a68d2f94df
commit f6ab84b2e0
3 changed files with 18 additions and 11 deletions

View File

@@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Name=Delfin
Comment=Stream movies and TV shows from Jellyfin
Icon=@APP_ID@
Exec=delfin
Categories=AudioVideo;Video;Player;TV;GTK;GNOME

View File

@@ -68,8 +68,6 @@
<launchable type="desktop-id">@APP_ID@.desktop</launchable>
<icon type="stock">@APP_ID@</icon>
<categories>
<category>AudioVideo</category>
<category>Video</category>

View File

@@ -29,15 +29,17 @@ install_data(
install_dir: metainfodir,
)
desktop_file = '@0@.desktop'.format(app_id)
desktop_file = configure_file(
input: 'cafe.avery.Delfin.desktop.in',
output: '@0@.desktop'.format(app_id),
configuration: {
'APP_ID': app_id,
},
)
# Create desktop-entry file from metainfo
custom_target('gen-desktop-entry',
input : [metainfo_file],
output : [desktop_file],
command : [ascli_exe, 'make-desktop-file', '@INPUT@', '@OUTPUT@'],
install: true,
install_dir: appsdir,
install_data(
desktop_file,
install_dir: appsdir,
)
resources_file = configure_file(
@@ -49,7 +51,7 @@ resources_file = configure_file(
)
# Compile and install resources
resources = gnome.compile_resources(
gnome.compile_resources(
'resources',
resources_file,
gresource_bundle: true,