Skip to content

Commit

Permalink
still working on flatpak support
Browse files Browse the repository at this point in the history
  • Loading branch information
mhogomchungu committed Aug 5, 2024
1 parent 0fe8643 commit 1cab1c1
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 42 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ endif()
if(APPLE)
else()
if(BUILD_FLATPAK)
set_target_properties( media-downloader PROPERTIES OUTPUT_NAME org.mhogomchungu.media_downloader)
set_target_properties( media-downloader PROPERTIES OUTPUT_NAME io.github.mhogomchungu.media-downloader)
install(TARGETS media-downloader RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install(FILES src/flatpak/org.mhogomchungu.media_downloader.metainfo.xml DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo)
install(FILES src/flatpak/org.mhogomchungu.media_downloader.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/512x512/apps)
install(FILES src/flatpak/org.mhogomchungu.media_downloader.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications)
install(FILES src/flatpak/io.github.mhogomchungu.media-downloader.metainfo.xml DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo)
install(FILES src/flatpak/io.github.mhogomchungu.media-downloader.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/512x512/apps)
install(FILES src/flatpak/io.github.mhogomchungu.media-downloader.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications)
else()
install(TARGETS media-downloader RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install(FILES src/media-downloader.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Type=Application
Name=Media Downloader
Comment=A Qt based GUI frontend to yt-dlp, gallery-dl, lux, svtplay-dl and others
Icon=org.mhogomchungu.media_downloader
Exec=org.mhogomchungu.media_downloader
Exec=io.github.mhogomchungu.media-downloader
Categories=Network;Qt
29 changes: 29 additions & 0 deletions src/flatpak/io.github.mhogomchungu.media-downloader.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"app-id": "io.github.mhogomchungu.media-downloader",
"runtime": "org.kde.Platform",
"runtime-version": "6.7",
"sdk": "org.kde.Sdk",
"command": "io.github.mhogomchungu.media-downloader",
"finish-args": [
"--share=ipc",
"--socket=wayland",
"--socket=fallback-x11",
"--filesystem=xdg-download",
"--share=network",
"--device=dri"
],
"modules": [
{
"name": "io.github.mhogomchungu.media-downloader",
"buildsystem": "cmake",
"config-opts": ["-DCMAKE_BUILD_TYPE=release","-DBUILD_FLATPAK=TRUE"],
"sources": [
{
"type": "archive",
"url": "https://github.com/mhogomchungu/media-downloader/releases/download/4.9.0/media-downloader-4.9.0.1.tar.xz",
"sha256": "7d2f7cc060d195ceacca785e264039feb6d964db6c000adc91abab7d8515bdca"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">

<id>org.mhogomchungu.media_downloader</id>
<id>io.github.mhogomchungu.media-downloader</id>

<name>Media Downloader</name>

Expand All @@ -11,29 +11,29 @@

<project_license>GPL-2.0-or-later</project_license>

<url type="homepage">https://github.com/mhogomchungu/media-downloader</url>
<url type="homepage">https://mhogomchungu.github.io/media-downloader</url>

<content_rating type="oars-1.1" />

<developer id="org.mhogomchungu.media_downloader">
<developer id="io.github.mhogomchungu.media-downloader">
<name>Francis Banyikwa</name>
</developer>

<description><p>This application is a front end to command line tools that deals with downloading of online media and can be used to download video files, audio files and images from many website.</p></description>

<icon>org.mhogomchungu.media_downloader</icon>
<icon>io.github.mhogomchungu.media-downloader</icon>

<launchable type="desktop-id">org.mhogomchungu.media_downloader.desktop</launchable>
<launchable type="desktop-id">io.github.mhogomchungu.media-downloader.desktop</launchable>

<screenshots>
<screenshot type="default">
<image>https://raw.githubusercontent.com/mhogomchungu/media-downloader/main/images/media-downloader-1.png</image>
<image>https://github.com/mhogomchungu/media-downloader/tree/58ba88ec57fd8d9cd263957e9352e6970654b8aa/images/images/media-downloader-1.png</image>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/mhogomchungu/media-downloader/main/images/media-downloader-2.png</image>
<image>https://github.com/mhogomchungu/media-downloader/tree/58ba88ec57fd8d9cd263957e9352e6970654b8aa/images/images/media-downloader-2.png</image>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/mhogomchungu/media-downloader/main/images/media-downloader-3.png</image>
<image>https://github.com/mhogomchungu/media-downloader/tree/58ba88ec57fd8d9cd263957e9352e6970654b8aa/images/images/media-downloader-3.png</image>
</screenshot>
</screenshots>

Expand All @@ -48,6 +48,6 @@
</releases>

<provides>
<binary>org.mhogomchungu.media_downloader</binary>
<binary>io.github.mhogomchungu.media-downloader</binary>
</provides>
</component>
28 changes: 0 additions & 28 deletions src/flatpak/org.mhogomchungu.media-downloader.json

This file was deleted.

0 comments on commit 1cab1c1

Please sign in to comment.