how to get appstream metadata in app installer(For icon and screenshot in app installer.) windows like.

I am building a windows 10 like theme and i am making a package installer that resembles windows software install dialog my target is arch, the text based works fine it for now searches pacman shows its info on click and on clicking install it installs and gives a launch button and option to add to desktop.

but i want to add icon and screenshot to sidebar like windows i got to know about appstream metadata but i cant figure out how to use it.

if any developer have experience in this please help!

What sort of installer, what tech, what sidebar, and where do you want the appstream metadata?

i am creating a gui for pacman look alike of windows software installer. i want to add app icon to it .

Without more information and explaining the tech you’re using (Qt? A shell script? Something else? Which language? How is it built?), and how you’re implementing the sidebar (or if you mean something different when you say sidebar) I can’t give you a good answer.

If you’re doing this installer with Qt and installing the thing using CMake like a traditional application, then you’d embed your application icon into your application with a Qt resource to be able make use of it in your sidebar code, and if you want your application icon to show up on things like menus or the panel you need to ship a desktop file as well. Neither of these has anything to do with appstream metadata.

functions of app

  • written in qt qml c++
  • window is in 2 parts
  • 1 sidebar have searchbar and below it a list it search pacman repo and list applications
    
  • 2 main window first show info dump of selected app to install on clicking install it shows pacman dump of installation then shows launch button and add to desktop button.
    
  • i want to show app icon next to the app names in the list where can i get that information surely pacman dosent provide that info
  • its not made per app basis its an appstore gui for pacman.

Right, now it makes sense, you want to show the icons/screenshots for the apps that are fetched by your software. It was unclear which app icon you were referring to.

After inspecting Discover’s code I figured out that what you need is to use AppstreamQt.